Skip to content

Commit 7261b08

Browse files
authored
Merge pull request #1134 from kube-hetzner/fix/control-plane-lb-ip
feat: explicit ip for the control-plane LB, as Hetzner's automatic IP…
2 parents 1f86491 + 3f73aa2 commit 7261b08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

control_planes.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ resource "hcloud_load_balancer_network" "control_plane" {
5858
load_balancer_id = hcloud_load_balancer.control_plane.*.id[0]
5959
subnet_id = hcloud_network_subnet.control_plane.*.id[0]
6060
enable_public_interface = var.control_plane_lb_enable_public_interface
61+
ip = cidrhost(hcloud_network_subnet.control_plane.*.ip_range[0], 1)
6162
}
6263

6364
resource "hcloud_load_balancer_target" "control_plane" {

0 commit comments

Comments
 (0)