2022-12-28 10:17:28 +08:00
|
|
|
output "master_ip_addresses" {
|
|
|
|
value = {
|
2023-05-08 08:15:16 +08:00
|
|
|
for name, machine in var.machines :
|
|
|
|
name => {
|
|
|
|
"private_ip" = hcloud_server_network.machine[name].ip
|
|
|
|
"public_ip" = hcloud_server.machine[name].ipv4_address
|
|
|
|
}
|
|
|
|
if machine.node_type == "master"
|
2022-12-28 10:17:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "worker_ip_addresses" {
|
|
|
|
value = {
|
2023-05-08 08:15:16 +08:00
|
|
|
for name, machine in var.machines :
|
|
|
|
name => {
|
|
|
|
"private_ip" = hcloud_server_network.machine[name].ip
|
|
|
|
"public_ip" = hcloud_server.machine[name].ipv4_address
|
|
|
|
}
|
|
|
|
if machine.node_type == "worker"
|
2022-12-28 10:17:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "cluster_private_network_cidr" {
|
|
|
|
value = var.private_subnet_cidr
|
|
|
|
}
|
|
|
|
|
|
|
|
output "network_id" {
|
|
|
|
value = hcloud_network.kubernetes.id
|
2023-02-06 17:35:16 +08:00
|
|
|
}
|