terraform-hcloud-kube-hetzner/output.tf

34 lines
1.0 KiB
Terraform
Raw Normal View History

output "cluster_name" {
2022-03-09 05:19:06 +01:00
value = var.cluster_name
description = "Shared suffix for all resources belonging to this cluster."
}
output "control_planes_public_ipv4" {
value = module.control_planes.*.ipv4_address
description = "The public IPv4 addresses of the controlplane server."
2021-12-03 02:11:52 +01:00
}
output "agents_public_ipv4" {
2022-02-23 16:46:46 +01:00
value = [
for obj in module.agents : obj.ipv4_address
]
description = "The public IPv4 addresses of the agent server."
2021-12-03 02:11:52 +01:00
}
output "load_balancer_public_ipv4" {
2022-02-14 00:24:08 +01:00
description = "The public IPv4 address of the Hetzner load balancer"
value = local.is_single_node_cluster || var.traefik_enabled == false ? module.control_planes[0].ipv4_address : data.hcloud_load_balancer.traefik[0].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
}