Use cidrhost

This commit is contained in:
2023-11-04 13:21:23 +01:00
parent 5fc9e1b22e
commit d35466a056
+7 -3
View File
@@ -43,9 +43,13 @@ module "test_cluster" {
datacenter_name = data.hcloud_datacenter.nuremberg.name,
network_zone = data.hcloud_location.nuremberg.network_zone
}]
domain = local.domain
network_id = hcloud_network.kubernetes-network.id
private_node_ips = ["10.0.0.4", "10.0.0.5", "10.0.0.6"]
domain = local.domain
network_id = hcloud_network.kubernetes-network.id
private_node_ips = [
cidrhost(hcloud_network_subnet.k8s-network-subnet.ip_range, 4),
cidrhost(hcloud_network_subnet.k8s-network-subnet.ip_range, 5),
cidrhost(hcloud_network_subnet.k8s-network-subnet.ip_range, 6)
]
server_subnet_id = hcloud_network_subnet.k8s-network-subnet.id
cluster_name = "test"
argocd_environment = "test"