infrastructure/k8s.tjo.cloud/modules/cluster/outputs.tf

20 lines
458 B
Terraform
Raw Normal View History

2024-07-14 10:19:37 +00:00
output "name" {
value = var.cluster.name
}
output "api" {
value = merge(var.cluster.api, {
2024-08-04 17:50:50 +00:00
internal : merge(var.cluster.api.internal, {
endpoint : local.cluster_internal_endpoint,
}),
public : merge(var.cluster.api.public, {
endpoint : local.cluster_public_endpoint,
}),
2024-07-14 10:19:37 +00:00
ca : data.talos_cluster_kubeconfig.this.kubernetes_client_configuration.ca_certificate,
})
}
output "nodes" {
value = local.nodes_with_address
}