2018-12-16 06:48:08 +01:00
|
|
|
output "kubeconfig-admin" {
|
2020-11-23 20:01:04 +01:00
|
|
|
value = module.bootstrap.kubeconfig-admin
|
|
|
|
sensitive = true
|
2018-12-16 06:48:08 +01:00
|
|
|
}
|
|
|
|
|
2018-08-28 06:30:26 +02:00
|
|
|
# Outputs for Kubernetes Ingress
|
|
|
|
|
|
|
|
output "ingress_static_ipv4" {
|
2019-05-28 06:43:08 +02:00
|
|
|
value = azurerm_public_ip.ingress-ipv4.ip_address
|
2018-08-28 06:30:26 +02:00
|
|
|
description = "IPv4 address of the load balancer for distributing traffic to Ingress controllers"
|
|
|
|
}
|
|
|
|
|
|
|
|
# Outputs for worker pools
|
|
|
|
|
|
|
|
output "region" {
|
2019-05-28 06:43:08 +02:00
|
|
|
value = azurerm_resource_group.cluster.location
|
2018-08-28 06:30:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
output "resource_group_name" {
|
2019-05-28 06:43:08 +02:00
|
|
|
value = azurerm_resource_group.cluster.name
|
2018-08-28 06:30:26 +02:00
|
|
|
}
|
|
|
|
|
2019-10-31 09:05:04 +01:00
|
|
|
output "resource_group_id" {
|
|
|
|
value = azurerm_resource_group.cluster.id
|
|
|
|
}
|
|
|
|
|
2018-08-28 06:30:26 +02:00
|
|
|
output "subnet_id" {
|
2019-05-28 06:43:08 +02:00
|
|
|
value = azurerm_subnet.worker.id
|
2018-08-28 06:30:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
output "security_group_id" {
|
2019-05-28 06:43:08 +02:00
|
|
|
value = azurerm_network_security_group.worker.id
|
2018-08-28 06:30:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
output "kubeconfig" {
|
2020-11-23 20:01:04 +01:00
|
|
|
value = module.bootstrap.kubeconfig-kubelet
|
|
|
|
sensitive = true
|
2018-08-28 06:30:26 +02:00
|
|
|
}
|
2019-04-08 03:04:02 +02:00
|
|
|
|
|
|
|
# Outputs for custom firewalling
|
|
|
|
|
2024-05-15 06:19:31 +02:00
|
|
|
output "controller_security_group_name" {
|
|
|
|
description = "Network Security Group for controller nodes"
|
|
|
|
value = azurerm_network_security_group.controller.name
|
|
|
|
}
|
|
|
|
|
2019-04-08 03:04:02 +02:00
|
|
|
output "worker_security_group_name" {
|
2024-05-15 06:19:31 +02:00
|
|
|
description = "Network Security Group for worker nodes"
|
|
|
|
value = azurerm_network_security_group.worker.name
|
|
|
|
}
|
|
|
|
|
|
|
|
output "controller_address_prefixes" {
|
|
|
|
description = "Controller network subnet CIDR addresses (for source/destination)"
|
|
|
|
value = azurerm_subnet.controller.address_prefixes
|
2019-04-08 03:04:02 +02:00
|
|
|
}
|
|
|
|
|
2022-04-02 01:17:54 +02:00
|
|
|
output "worker_address_prefixes" {
|
|
|
|
description = "Worker network subnet CIDR addresses (for source/destination)"
|
|
|
|
value = azurerm_subnet.worker.address_prefixes
|
2019-04-08 03:04:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# Outputs for custom load balancing
|
|
|
|
|
|
|
|
output "loadbalancer_id" {
|
|
|
|
description = "ID of the cluster load balancer"
|
2019-05-28 06:43:08 +02:00
|
|
|
value = azurerm_lb.cluster.id
|
2019-04-08 03:04:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
output "backend_address_pool_id" {
|
|
|
|
description = "ID of the worker backend address pool"
|
2019-05-28 06:43:08 +02:00
|
|
|
value = azurerm_lb_backend_address_pool.worker.id
|
2019-04-08 03:04:02 +02:00
|
|
|
}
|
2020-10-17 23:41:26 +02:00
|
|
|
|
|
|
|
# Outputs for debug
|
|
|
|
|
|
|
|
output "assets_dist" {
|
2020-11-23 20:01:04 +01:00
|
|
|
value = module.bootstrap.assets_dist
|
|
|
|
sensitive = true
|
2020-10-17 23:41:26 +02:00
|
|
|
}
|
|
|
|
|