2023-12-15 10:36:58 +01:00
|
|
|
# Outputs common to all CSPs
|
|
|
|
|
2023-10-19 10:03:22 +02:00
|
|
|
output "out_of_cluster_endpoint" {
|
2023-12-15 10:36:58 +01:00
|
|
|
value = openstack_networking_floatingip_v2.public_ip.address
|
|
|
|
description = "External endpoint for the Kubernetes API server. Only varies from the `in_cluster_endpoint` when using an internal load balancer."
|
2023-10-19 10:03:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
output "in_cluster_endpoint" {
|
2023-12-15 10:36:58 +01:00
|
|
|
value = openstack_networking_floatingip_v2.public_ip.address
|
|
|
|
description = "Internal endpoint for the Kubernetes API server."
|
2023-02-27 18:19:52 +01:00
|
|
|
}
|
|
|
|
|
2023-07-21 16:43:51 +02:00
|
|
|
output "api_server_cert_sans" {
|
2023-12-15 10:36:58 +01:00
|
|
|
value = sort(concat([openstack_networking_floatingip_v2.public_ip.address], var.custom_endpoint == "" ? [] : [var.custom_endpoint]))
|
|
|
|
description = "List of Subject Alternative Names (SANs) for the API server certificate."
|
2023-07-21 16:43:51 +02:00
|
|
|
}
|
|
|
|
|
2023-02-27 18:19:52 +01:00
|
|
|
output "uid" {
|
2023-12-15 10:36:58 +01:00
|
|
|
value = local.uid
|
|
|
|
description = "Unique Identifier (UID) of the cluster."
|
2023-02-27 18:19:52 +01:00
|
|
|
}
|
|
|
|
|
2023-12-15 10:36:58 +01:00
|
|
|
output "init_secret" {
|
|
|
|
value = random_password.init_secret.result
|
|
|
|
sensitive = true
|
|
|
|
description = "Initialization secret to authenticate the bootstrapping node."
|
2023-02-27 18:19:52 +01:00
|
|
|
}
|
2023-10-09 13:04:29 +02:00
|
|
|
|
|
|
|
output "name" {
|
2023-12-15 10:36:58 +01:00
|
|
|
value = local.name
|
|
|
|
description = "Unique name of the Constellation cluster, comprised by name and UID."
|
2023-10-09 13:04:29 +02:00
|
|
|
}
|
2023-10-23 15:06:48 +02:00
|
|
|
|
2023-12-15 10:36:58 +01:00
|
|
|
output "ip_cidr_node" {
|
|
|
|
value = local.cidr_vpc_subnet_nodes
|
|
|
|
description = "CIDR block of the node network."
|
2023-10-23 15:06:48 +02:00
|
|
|
}
|
2024-02-09 17:27:12 +01:00
|
|
|
|
|
|
|
# OpenStack-specific outputs
|
|
|
|
|
|
|
|
output "network_id" {
|
|
|
|
value = openstack_networking_network_v2.vpc_network.id
|
|
|
|
description = "The OpenStack network id the cluster is deployed in."
|
|
|
|
}
|
2024-02-14 16:37:26 +01:00
|
|
|
|
|
|
|
output "lb_subnetwork_id" {
|
|
|
|
value = openstack_networking_subnet_v2.lb_subnetwork.id
|
|
|
|
description = "The OpenStack subnetwork id lbs are deployed in."
|
|
|
|
}
|