Skip to content

Commit

Permalink
Output public ipv6 on single-node-clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
mattanja committed Oct 14, 2024
1 parent 0c87d28 commit c55cc1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit c55cc1f

Please sign in to comment.