Skip to content

Commit 09d2797

Browse files
committed
variables
Signed-off-by: junior <junior@users.noreply.github.com>
1 parent 59eed50 commit 09d2797

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

modules/oke/outputs.tf

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ output "orm_private_endpoint_oke_api_ip_address" {
3333
]
3434
}
3535

36+
# OKE info
37+
output "oke_cluster_ocid" {
38+
value = var.create_new_oke_cluster ? oci_containerengine_cluster.oke_cluster[0].id : ""
39+
description = "OKE Cluster OCID"
40+
}
41+
output "oke_cluster_compartment_ocid" {
42+
value = local.oke_compartment_ocid
43+
description = "Compartment OCID used by the OKE Cluster"
44+
}
45+
3646
# OKE VCN info
3747
output "oke_vcn_ocid" {
3848
value = var.create_new_oke_cluster ? oci_core_virtual_network.oke_vcn[0].id : "" # TODO: Include selected VCN for private endpoint or Existent VCN
@@ -81,4 +91,4 @@ output "generated_private_key_pem" {
8191

8292
# output "oke_debug_oke_endpoints" {
8393
# value = oci_containerengine_cluster.oke_cluster.0.endpoints
84-
# }
94+
# }

modules/oke/variables.tf

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,18 @@ variable "cluster_autoscaler_enabled" {
9292
default = true
9393
description = "Enables OKE cluster autoscaler. Node pools will auto scale based on the resources usage"
9494
}
95-
variable "cluster_autoscaler_min_nodes" {
96-
default = 3
97-
description = "Minimum number of nodes on the node pool to be scheduled by the Kubernetes"
98-
}
99-
variable "cluster_autoscaler_max_nodes" {
100-
default = 10
101-
description = "Maximum number of nodes on the node pool to be scheduled by the Kubernetes"
102-
}
103-
variable "existent_oke_nodepool_id_for_autoscaler" {
104-
default = ""
105-
description = "Nodepool Id of the existent OKE to use with Cluster Autoscaler"
106-
}
95+
# variable "cluster_autoscaler_min_nodes" {
96+
# default = 3
97+
# description = "Minimum number of nodes on the node pool to be scheduled by the Kubernetes"
98+
# }
99+
# variable "cluster_autoscaler_max_nodes" {
100+
# default = 10
101+
# description = "Maximum number of nodes on the node pool to be scheduled by the Kubernetes"
102+
# }
103+
# variable "existent_oke_nodepool_id_for_autoscaler" {
104+
# default = ""
105+
# description = "Nodepool Id of the existent OKE to use with Cluster Autoscaler"
106+
# }
107107

108108
## OKE Node Pool Details
109109
variable "node_pool_name" {
@@ -112,7 +112,7 @@ variable "node_pool_name" {
112112
}
113113
variable "k8s_version" {
114114
default = "Latest"
115-
description = "Kubernetes version installed on your master and worker nodes"
115+
description = "Kubernetes version installed on your Control Plane"
116116
}
117117
variable "num_pool_workers" {
118118
default = 3

0 commit comments

Comments
 (0)