-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
34 lines (28 loc) · 1.35 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
output "name" {
# This may seem redundant with the `name` input, but it serves an important
# purpose. Terraform won't establish a dependency graph without this to interpolate on.
description = "The name of the cluster master. This output is used for interpolation with node pools, other modules."
value = google_container_cluster.cluster.name
}
output "master_version" {
description = "The Kubernetes master version."
value = google_container_cluster.cluster.master_version
}
output "endpoint" {
description = "The IP address of the cluster master."
sensitive = true
value = google_container_cluster.cluster.endpoint
}
# The following outputs allow authentication and connectivity to the GKE Cluster.
output "client_certificate" {
description = "Public certificate used by clients to authenticate to the cluster endpoint."
value = base64decode(google_container_cluster.cluster.master_auth[0].client_certificate)
}
output "client_key" {
description = "Private key used by clients to authenticate to the cluster endpoint."
value = base64decode(google_container_cluster.cluster.master_auth[0].client_key)
}
output "cluster_ca_certificate" {
description = "The public certificate that is the root of trust for the cluster."
value = base64decode(google_container_cluster.cluster.master_auth[0].cluster_ca_certificate)
}