fix ip_not_available error

This commit is contained in:
Karim Naufal
2022-02-16 10:56:22 +01:00
parent 4aabee0dad
commit 1165389fc3
4 changed files with 9 additions and 9 deletions

View File

@@ -58,7 +58,7 @@ resource "hcloud_server" "agents" {
token = random_password.k3s_token.result
kubelet-arg = "cloud-provider=external"
flannel-iface = "eth1"
node-ip = cidrhost(hcloud_network_subnet.k3s.ip_range, 257 + count.index)
node-ip = cidrhost(hcloud_network_subnet.k3s.ip_range, 513 + count.index)
node-label = var.automatically_upgrade_k3s ? ["k3s-upgrade=true"] : []
})
destination = "/tmp/config.yaml"
@@ -100,7 +100,7 @@ resource "hcloud_server" "agents" {
network {
network_id = hcloud_network.k3s.id
ip = cidrhost(hcloud_network_subnet.k3s.ip_range, 257 + count.index)
ip = cidrhost(hcloud_network_subnet.k3s.ip_range, 513 + count.index)
}
depends_on = [