2018-12-15 21:48:08 -08:00
|
|
|
output "kubeconfig-admin" {
|
2020-11-23 11:01:04 -08:00
|
|
|
value = module.bootstrap.kubeconfig-admin
|
|
|
|
sensitive = true
|
2018-12-15 21:48:08 -08:00
|
|
|
}
|
|
|
|
|
2018-08-27 21:30:26 -07:00
|
|
|
# Outputs for Kubernetes Ingress
|
|
|
|
|
|
|
|
output "ingress_static_ipv4" {
|
2024-07-10 21:49:41 -07:00
|
|
|
value = azurerm_public_ip.frontend-ipv4.ip_address
|
2018-08-27 21:30:26 -07:00
|
|
|
description = "IPv4 address of the load balancer for distributing traffic to Ingress controllers"
|
|
|
|
}
|
|
|
|
|
2024-07-05 17:21:50 -07:00
|
|
|
output "ingress_static_ipv6" {
|
2024-07-10 21:49:41 -07:00
|
|
|
value = azurerm_public_ip.frontend-ipv6.ip_address
|
2024-07-05 17:21:50 -07:00
|
|
|
description = "IPv6 address of the load balancer for distributing traffic to Ingress controllers"
|
|
|
|
}
|
|
|
|
|
2018-08-27 21:30:26 -07:00
|
|
|
# Outputs for worker pools
|
|
|
|
|
2024-07-08 21:20:46 -07:00
|
|
|
output "location" {
|
2019-05-27 21:43:08 -07:00
|
|
|
value = azurerm_resource_group.cluster.location
|
2018-08-27 21:30:26 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
output "resource_group_name" {
|
2019-05-27 21:43:08 -07:00
|
|
|
value = azurerm_resource_group.cluster.name
|
2018-08-27 21:30:26 -07:00
|
|
|
}
|
|
|
|
|
2019-10-31 10:05:04 +02:00
|
|
|
output "resource_group_id" {
|
|
|
|
value = azurerm_resource_group.cluster.id
|
|
|
|
}
|
|
|
|
|
2018-08-27 21:30:26 -07:00
|
|
|
output "subnet_id" {
|
2019-05-27 21:43:08 -07:00
|
|
|
value = azurerm_subnet.worker.id
|
2018-08-27 21:30:26 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
output "security_group_id" {
|
2019-05-27 21:43:08 -07:00
|
|
|
value = azurerm_network_security_group.worker.id
|
2018-08-27 21:30:26 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
output "kubeconfig" {
|
2020-11-23 11:01:04 -08:00
|
|
|
value = module.bootstrap.kubeconfig-kubelet
|
|
|
|
sensitive = true
|
2018-08-27 21:30:26 -07:00
|
|
|
}
|
2019-04-07 18:04:02 -07:00
|
|
|
|
|
|
|
# Outputs for custom firewalling
|
|
|
|
|
2024-05-14 21:19:31 -07:00
|
|
|
output "controller_security_group_name" {
|
|
|
|
description = "Network Security Group for controller nodes"
|
|
|
|
value = azurerm_network_security_group.controller.name
|
|
|
|
}
|
|
|
|
|
2019-04-07 18:04:02 -07:00
|
|
|
output "worker_security_group_name" {
|
2024-05-14 21:19:31 -07: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)"
|
2024-07-05 17:21:50 -07:00
|
|
|
value = local.controller_subnets
|
2019-04-07 18:04:02 -07:00
|
|
|
}
|
|
|
|
|
2022-04-01 16:17:54 -07:00
|
|
|
output "worker_address_prefixes" {
|
|
|
|
description = "Worker network subnet CIDR addresses (for source/destination)"
|
2024-07-05 17:21:50 -07:00
|
|
|
value = local.worker_subnets
|
2019-04-07 18:04:02 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
# Outputs for custom load balancing
|
|
|
|
|
|
|
|
output "loadbalancer_id" {
|
|
|
|
description = "ID of the cluster load balancer"
|
2019-05-27 21:43:08 -07:00
|
|
|
value = azurerm_lb.cluster.id
|
2019-04-07 18:04:02 -07:00
|
|
|
}
|
|
|
|
|
2024-07-05 17:21:50 -07:00
|
|
|
output "backend_address_pool_ids" {
|
|
|
|
description = "IDs of the worker backend address pools"
|
|
|
|
value = {
|
|
|
|
ipv4 = [azurerm_lb_backend_address_pool.worker-ipv4.id]
|
|
|
|
ipv6 = [azurerm_lb_backend_address_pool.worker-ipv6.id]
|
|
|
|
}
|
2019-04-07 18:04:02 -07:00
|
|
|
}
|
2020-10-17 14:41:26 -07:00
|
|
|
|
|
|
|
# Outputs for debug
|
|
|
|
|
|
|
|
output "assets_dist" {
|
2020-11-23 11:01:04 -08:00
|
|
|
value = module.bootstrap.assets_dist
|
|
|
|
sensitive = true
|
2020-10-17 14:41:26 -07:00
|
|
|
}
|
|
|
|
|