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" {
|
2024-07-11 06:49:41 +02:00
|
|
|
value = azurerm_public_ip.frontend-ipv4.ip_address
|
2018-08-28 06:30:26 +02:00
|
|
|
description = "IPv4 address of the load balancer for distributing traffic to Ingress controllers"
|
|
|
|
}
|
|
|
|
|
2024-07-06 02:21:50 +02:00
|
|
|
output "ingress_static_ipv6" {
|
2024-07-11 06:49:41 +02:00
|
|
|
value = azurerm_public_ip.frontend-ipv6.ip_address
|
2024-07-06 02:21:50 +02:00
|
|
|
description = "IPv6 address of the load balancer for distributing traffic to Ingress controllers"
|
|
|
|
}
|
|
|
|
|
2018-08-28 06:30:26 +02:00
|
|
|
# Outputs for worker pools
|
|
|
|
|
2024-07-09 06:20:46 +02:00
|
|
|
output "location" {
|
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)"
|
2024-07-06 02:21:50 +02:00
|
|
|
value = local.controller_subnets
|
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)"
|
2024-07-06 02:21:50 +02:00
|
|
|
value = local.worker_subnets
|
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
|
|
|
}
|
|
|
|
|
2024-07-06 02:21:50 +02: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-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
|
|
|
}
|
|
|
|
|