Expose load balancer ip in outputs
This commit is contained in:
parent
d9498a5637
commit
1c9ff2121c
4
main.tf
4
main.tf
@ -152,3 +152,7 @@ resource "hcloud_placement_group" "k3s" {
|
||||
"engine" = "k3s"
|
||||
}
|
||||
}
|
||||
|
||||
data "hcloud_load_balancer" "traefik" {
|
||||
name = "traefik"
|
||||
}
|
||||
|
@ -8,6 +8,11 @@ output "agents_public_ip" {
|
||||
description = "The public IP addresses of the agent server."
|
||||
}
|
||||
|
||||
output "load_balancer_public_ip" {
|
||||
description = "The public IPv4 address of the Hetzner load balancer"
|
||||
value = data.hcloud_load_balancer.traefik.ipv4
|
||||
}
|
||||
|
||||
output "kubeconfig_file" {
|
||||
value = local.kubeconfig_external
|
||||
description = "Kubeconfig file content with external IP address"
|
||||
|
Loading…
Reference in New Issue
Block a user