kubespray/contrib/terraform/upcloud/modules/kubernetes-cluster/output.tf

15 lines
300 B
HCL

output "master_ip" {
value = {
for instance in upcloud_server.master :
instance.hostname => instance.network_interface[0].ip_address
}
}
output "worker_ip" {
value = {
for instance in upcloud_server.worker :
instance.hostname => instance.network_interface[0].ip_address
}
}