forked from Azure/terraform-azurerm-aks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutputs.tf
85 lines (65 loc) · 2.6 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
output "cluster_name" {
value = var.cluster_name
}
output "client_key" {
value = azurerm_kubernetes_cluster.main.kube_config[0].client_key
}
output "client_certificate" {
value = azurerm_kubernetes_cluster.main.kube_config[0].client_certificate
}
output "cluster_ca_certificate" {
value = azurerm_kubernetes_cluster.main.kube_config[0].cluster_ca_certificate
}
output "host" {
value = azurerm_kubernetes_cluster.main.kube_config[0].host
}
output "username" {
value = azurerm_kubernetes_cluster.main.kube_config[0].username
}
output "password" {
value = azurerm_kubernetes_cluster.main.kube_config[0].password
}
output "node_resource_group" {
value = azurerm_kubernetes_cluster.main.node_resource_group
}
output "location" {
value = azurerm_kubernetes_cluster.main.location
}
output "aks_id" {
value = azurerm_kubernetes_cluster.main.id
}
output "kube_config_raw" {
sensitive = true
value = azurerm_kubernetes_cluster.main.kube_config_raw
}
output "kube_admin_config_raw" {
sensitive = true
value = azurerm_kubernetes_cluster.main.kube_admin_config_raw
}
output "http_application_routing_zone_name" {
value = length(azurerm_kubernetes_cluster.main.addon_profile) > 0 && length(azurerm_kubernetes_cluster.main.addon_profile[0].http_application_routing) > 0 ? azurerm_kubernetes_cluster.main.addon_profile[0].http_application_routing[0].http_application_routing_zone_name : ""
}
output "system_assigned_identity" {
value = azurerm_kubernetes_cluster.main.identity
}
output "kubelet_identity" {
value = azurerm_kubernetes_cluster.main.kubelet_identity
}
output "admin_client_key" {
value = length(azurerm_kubernetes_cluster.main.kube_admin_config) > 0 ? azurerm_kubernetes_cluster.main.kube_admin_config.0.client_key : ""
}
output "admin_client_certificate" {
value = length(azurerm_kubernetes_cluster.main.kube_admin_config) > 0 ? azurerm_kubernetes_cluster.main.kube_admin_config.0.client_certificate : ""
}
output "admin_cluster_ca_certificate" {
value = length(azurerm_kubernetes_cluster.main.kube_admin_config) > 0 ? azurerm_kubernetes_cluster.main.kube_admin_config.0.cluster_ca_certificate : ""
}
output "admin_host" {
value = length(azurerm_kubernetes_cluster.main.kube_admin_config) > 0 ? azurerm_kubernetes_cluster.main.kube_admin_config.0.host : ""
}
output "admin_username" {
value = length(azurerm_kubernetes_cluster.main.kube_admin_config) > 0 ? azurerm_kubernetes_cluster.main.kube_admin_config.0.username : ""
}
output "admin_password" {
value = length(azurerm_kubernetes_cluster.main.kube_admin_config) > 0 ? azurerm_kubernetes_cluster.main.kube_admin_config.0.password : ""
}