2023-12-15 04:36:58 -05:00
|
|
|
# Outputs common to all CSPs
|
|
|
|
|
2023-10-17 09:46:15 -04:00
|
|
|
output "out_of_cluster_endpoint" {
|
2023-12-15 04:36:58 -05:00
|
|
|
value = local.out_of_cluster_endpoint
|
|
|
|
description = "External endpoint for the Kubernetes API server. Only varies from the `in_cluster_endpoint` when using an internal load balancer."
|
2022-10-21 06:24:18 -04:00
|
|
|
}
|
2022-11-26 13:44:34 -05:00
|
|
|
|
2023-10-17 09:46:15 -04:00
|
|
|
output "in_cluster_endpoint" {
|
2023-12-15 04:36:58 -05:00
|
|
|
value = local.in_cluster_endpoint
|
|
|
|
description = "Internal endpoint for the Kubernetes API server."
|
2023-10-17 09:46:15 -04:00
|
|
|
}
|
2023-12-15 04:36:58 -05:00
|
|
|
|
2023-07-21 10:43:51 -04:00
|
|
|
output "api_server_cert_sans" {
|
2023-10-17 09:46:15 -04:00
|
|
|
value = sort(
|
|
|
|
distinct(
|
|
|
|
concat(
|
|
|
|
[
|
|
|
|
local.in_cluster_endpoint,
|
|
|
|
local.out_of_cluster_endpoint,
|
|
|
|
],
|
|
|
|
var.custom_endpoint == "" ? [] : [var.custom_endpoint],
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "List of additional Subject Alternative Names (SANs) for the API server certificate."
|
2023-07-21 10:43:51 -04:00
|
|
|
}
|
|
|
|
|
2023-01-19 04:41:07 -05:00
|
|
|
output "uid" {
|
2023-12-15 04:36:58 -05:00
|
|
|
value = local.uid
|
|
|
|
description = "Unique Identifier (UID) of the cluster."
|
2023-01-19 04:41:07 -05:00
|
|
|
}
|
|
|
|
|
2023-12-15 04:36:58 -05:00
|
|
|
output "init_secret" {
|
|
|
|
value = random_password.init_secret.result
|
|
|
|
sensitive = true
|
|
|
|
description = "Initialization secret to authenticate the bootstrapping node."
|
2022-11-26 13:44:34 -05:00
|
|
|
}
|
2023-10-09 07:04:29 -04:00
|
|
|
|
|
|
|
output "name" {
|
2023-12-15 04:36:58 -05:00
|
|
|
value = local.name
|
|
|
|
description = "Unique name of the Constellation cluster, comprised by name and UID."
|
2023-10-09 07:04:29 -04:00
|
|
|
}
|
2023-10-23 09:06:48 -04:00
|
|
|
|
2023-12-15 04:36:58 -05:00
|
|
|
output "ip_cidr_node" {
|
|
|
|
value = local.cidr_vpc_subnet_nodes
|
|
|
|
description = "CIDR block of the node network."
|
2023-10-23 09:06:48 -04:00
|
|
|
}
|