-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
53 lines (43 loc) · 1.79 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
51
52
53
data "azurerm_resources" "scale_set" {
resource_group_name = azurerm_kubernetes_cluster.this.node_resource_group
type = "Microsoft.Compute/virtualMachineScaleSets"
}
output "id" {
description = "A unique ID that can be used to identify and reference a Kubernetes cluster"
value = azurerm_kubernetes_cluster.this.id
}
output "endpoint" {
description = "The base URL of the API server on the Kubernetes master node"
value = azurerm_kubernetes_cluster.this.kube_config.0.host
}
output "kube_config" {
description = "The full contents of the Kubernetes cluster's kubeconfig file"
value = azurerm_kubernetes_cluster.this.kube_config_raw
}
output "cluster_ca_cert" {
description = "The base64 encoded public certificate for the cluster's certificate authority"
value = azurerm_kubernetes_cluster.this.kube_config.0.cluster_ca_certificate
}
output "cluster_client_key" {
description = "The base64 encoded private key used by clients to access the cluster"
value = azurerm_kubernetes_cluster.this.kube_config.0.client_key
}
output "cluster_client_certificate" {
description = "The base64 encoded public certificate used by clients to access the cluster"
value = azurerm_kubernetes_cluster.this.kube_config.0.client_certificate
}
output "username" {
description = "The cluster username"
value = azurerm_kubernetes_cluster.this.kube_config.0.username
}
output "password" {
description = "The cluster password"
value = azurerm_kubernetes_cluster.this.kube_config.0.password
}
output "resource_group" {
description = "Name of the resource group where cluster resources are"
value = azurerm_kubernetes_cluster.this.node_resource_group
}
output "scale_set" {
value = join(",", data.azurerm_resources.scale_set.resources.*.name)
}