Added outputs for the ip addresses pointing to the api server

This commit is contained in:
2023-11-04 09:44:12 +01:00
parent 0916e6f53c
commit 57a092a947
+7
View File
@@ -0,0 +1,7 @@
output "api_server_ipv4_address" {
value = var.create_loadbalancer ? hcloud_load_balancer.kubernetes.ipv4 : hcloud_server.manager[0].ipv4_address
}
output "api_server_ipv6_address" {
value = var.create_loadbalancer ? hcloud_load_balancer.kubernetes.ipv6 : hcloud_server.manager[0].ipv6_address
}