diff --git a/output.tf b/output.tf index 679fcde4..3585a121 100644 --- a/output.tf +++ b/output.tf @@ -28,13 +28,13 @@ output "agents_public_ipv4" { } output "ingress_public_ipv4" { - description = "The public IPv4 address of the Hetzner load balancer" + description = "The public IPv4 address of the Hetzner load balancer (with fallback to first control plane node)" value = local.has_external_load_balancer ? module.control_planes[keys(module.control_planes)[0]].ipv4_address : hcloud_load_balancer.cluster[0].ipv4 } output "ingress_public_ipv6" { - description = "The public IPv6 address of the Hetzner load balancer" - value = (local.has_external_load_balancer || var.load_balancer_disable_ipv6) ? null : hcloud_load_balancer.cluster[0].ipv6 + description = "The public IPv6 address of the Hetzner load balancer (with fallback to first control plane node)" + value = local.has_external_load_balancer ? module.control_planes[keys(module.control_planes)[0]].ipv6_address : (var.load_balancer_disable_ipv6 ? null : hcloud_load_balancer.cluster[0].ipv6) } output "k3s_endpoint" {