Skip to content

Commit

Permalink
Merge pull request #1552 from cedric-lovit/ExposeControlPlaneLoadBala…
Browse files Browse the repository at this point in the history
…ncer

Expose control plane load balancer ipv4 and ipv6
mysticaltech authored Dec 23, 2024
2 parents d3fc32c + 60886ca commit a48ad43
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions output.tf
Original file line number Diff line number Diff line change
@@ -51,6 +51,17 @@ output "ingress_public_ipv6" {
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 "lb_control_plane_ipv4" {
description = "The public IPv4 address of the Hetzner control plane load balancer"
value = one(hcloud_load_balancer.control_plane[*].ipv4)
}

output "lb_control_plane_ipv6" {
description = "The public IPv6 address of the Hetzner control plane load balancer"
value = one(hcloud_load_balancer.control_plane[*].ipv6)
}


output "k3s_endpoint" {
description = "A controller endpoint to register new nodes"
value = "https://${var.use_control_plane_lb ? hcloud_load_balancer_network.control_plane.*.ip[0] : module.control_planes[keys(module.control_planes)[0]].private_ipv4_address}:6443"

0 comments on commit a48ad43

Please sign in to comment.