terraform-hcloud-kube-hetzner/output.tf

29 lines
800 B
Terraform
Raw Normal View History

2021-12-03 02:11:52 +01:00
output "controlplanes_public_ip" {
value = module.control_planes.*.ipv4_address
2021-12-03 02:11:52 +01:00
description = "The public IP addresses of the controlplane server."
}
output "agents_public_ip" {
2022-02-23 16:46:46 +01:00
value = [
for obj in module.agents : obj.ipv4_address
]
2021-12-03 02:11:52 +01:00
description = "The public IP addresses of the agent server."
}
2022-02-14 00:24:08 +01:00
output "load_balancer_public_ip" {
description = "The public IPv4 address of the Hetzner load balancer"
2022-02-14 11:24:30 +01:00
value = data.hcloud_load_balancer.traefik.ipv4
2022-02-14 00:24:08 +01:00
}
output "kubeconfig_file" {
value = local.kubeconfig_external
description = "Kubeconfig file content with external IP address"
sensitive = true
}
output "kubeconfig" {
description = "Structured kubeconfig data to supply to other providers"
value = local.kubeconfig_data
sensitive = true
}