-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
50 lines (42 loc) · 1.29 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# output "cluster_summary" {
# description = "Cluster Summary."
# value = {
# #cluster_version : local.k3s_version
# cluster_region : var.region
# cluster_id : digitalocean_kubernetes_cluster.doks.id
# host_endpoint : digitalocean_kubernetes_cluster.doks.endpoint
# cluster_token : digitalocean_kubernetes_cluster.doks.kube_config[0].token
# cluster_ca_certificate : base64decode(
# digitalocean_kubernetes_cluster.doks.kube_config[0].cluster_ca_certificate
# )
# }
# sensitive = true
# }
output "cluster_id" {
value = digitalocean_kubernetes_cluster.doks.id
}
output "cluster_name" {
value = digitalocean_kubernetes_cluster.doks.name
}
output "cluster_vpc" {
value = var.vpc_uuid == null ? data.digitalocean_vpc.doks.id : var.vpc_uuid
}
output "cluster_subnet" {
value = digitalocean_kubernetes_cluster.doks.cluster_subnet
}
output "service_subnet" {
value = digitalocean_kubernetes_cluster.doks.service_subnet
}
output "endpoint" {
value = digitalocean_kubernetes_cluster.doks.endpoint
}
output "ca_cert" {
value = base64decode(
digitalocean_kubernetes_cluster.doks.kube_config[0].cluster_ca_certificate
)
sensitive = true
}
output "cluster_token" {
value = digitalocean_kubernetes_cluster.doks.kube_config[0].token
sensitive = true
}