Skip to content

Commit 8e1a6ab

Browse files
authored
Output Endpoints (#615)
* Output OKE endpoints in main module * Output endpoints from OKE module
1 parent 95dbbc2 commit 8e1a6ab

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

modules/oke/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ output "cluster_kms_dynamic_group_id" {
1212
output "nodepool_ids" {
1313
value = zipmap(values(oci_containerengine_node_pool.nodepools)[*].name, values(oci_containerengine_node_pool.nodepools)[*].id)
1414
}
15+
16+
output "endpoints" {
17+
value = oci_containerengine_cluster.k8s_cluster.endpoints
18+
}

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,8 @@ output "bastion_service_instance_id" {
8484
output "fss_id" {
8585
value = var.create_fss == true ? module.storage[0].fss_id : null
8686
}
87+
88+
output "cluster_endpoints" {
89+
description = "Endpoints for the Kubernetes cluster"
90+
value = module.oke.endpoints
91+
}

0 commit comments

Comments
 (0)