mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
21 lines
476 B
HCL
21 lines
476 B
HCL
|
|
output "master_ip" {
|
|
value = {
|
|
for instance in upcloud_server.master :
|
|
instance.hostname => {
|
|
"public_ip": instance.network_interface[0].ip_address
|
|
"private_ip": instance.network_interface[1].ip_address
|
|
}
|
|
}
|
|
}
|
|
|
|
output "worker_ip" {
|
|
value = {
|
|
for instance in upcloud_server.worker :
|
|
instance.hostname => {
|
|
"public_ip": instance.network_interface[0].ip_address
|
|
"private_ip": instance.network_interface[1].ip_address
|
|
}
|
|
}
|
|
}
|