-
Notifications
You must be signed in to change notification settings - Fork 3
/
outputs.tf
69 lines (56 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
output "host" {
value = azurerm_kubernetes_cluster.k8s.kube_config[0].host
description = "The Kubernetes API host for a kubectl config"
}
output "client_certificate" {
value = azurerm_kubernetes_cluster.k8s.kube_config[0].client_certificate
description = "The Kubernetes client certificate for a kubectl config"
}
output "client_key" {
value = azurerm_kubernetes_cluster.k8s.kube_config[0].client_key
description = "The Kubernetes client private key for a kubectl config"
}
output "cluster_ca_certificate" {
value = azurerm_kubernetes_cluster.k8s.kube_config[0].cluster_ca_certificate
description = "The Kubernetes cluster ca certificate for a kubectl config"
}
output "fqdn" {
value = azurerm_kubernetes_cluster.k8s.fqdn
description = "The FQDN to the Kubernetes API server"
}
output "node_resource_group" {
value = azurerm_kubernetes_cluster.k8s.node_resource_group
description = "The resource group the Kubernetes nodes were created in"
}
output "cluster_name" {
value = azurerm_kubernetes_cluster.k8s.name
description = "The AKS cluster name"
}
output "cluster_id" {
value = azurerm_kubernetes_cluster.k8s.id
description = "The AKS cluster id"
}
output "client_certificate_admin" {
value = length(azurerm_kubernetes_cluster.k8s.kube_admin_config) > 0 ? azurerm_kubernetes_cluster.k8s.kube_admin_config[0].client_certificate : azurerm_kubernetes_cluster.k8s.kube_config[0].client_certificate
description = "The Kubernetes client certificate for an admin access"
}
output "client_key_admin" {
value = length(azurerm_kubernetes_cluster.k8s.kube_admin_config) > 0 ? azurerm_kubernetes_cluster.k8s.kube_admin_config[0].client_key : azurerm_kubernetes_cluster.k8s.kube_config[0].client_key
description = "The Kubernetes client private key for an admin access"
}
output "client_token" {
value = azurerm_kubernetes_cluster.k8s.kube_config[0].password
description = "A client token for accessing the Cluster using kubectl"
}
output "client_token_admin" {
value = length(azurerm_kubernetes_cluster.k8s.kube_admin_config) > 0 ? azurerm_kubernetes_cluster.k8s.kube_admin_config[0].password : ""
description = "A client token for accessing the Cluster using kubectl with an admin access"
}
output "public_outbound_ips" {
value = [azurerm_public_ip.public-ip-outbound[*].ip_address]
description = "The outbound public IPs"
}
output "managed_identity_object_id" {
value = azurerm_kubernetes_cluster.k8s.identity[0].principal_id
description = "The object ID of the service principal of the managed identity of the AKS"
}