@@ -92,6 +92,7 @@ module "oke_node_pool" {
92
92
node_pool_shape = each. value . node_pool_shape
93
93
node_pool_node_shape_config_ocpus = each. value . node_pool_node_shape_config_ocpus
94
94
node_pool_node_shape_config_memory_in_gbs = each. value . node_pool_node_shape_config_memory_in_gbs
95
+ existent_oke_nodepool_id_for_autoscaler = each. value . existent_oke_nodepool_id_for_autoscaler
95
96
public_ssh_key = local. workers_public_ssh_key
96
97
97
98
# OKE Network Details
@@ -111,6 +112,7 @@ locals {
111
112
node_pool_node_shape_config_ocpus = var.node_pool_instance_shape.ocpus
112
113
node_pool_node_shape_config_memory_in_gbs = var.node_pool_instance_shape.memory
113
114
node_pool_boot_volume_size_in_gbs = var.node_pool_boot_volume_size_in_gbs
115
+ existent_oke_nodepool_id_for_autoscaler = var.existent_oke_nodepool_id_for_autoscaler_1
114
116
},
115
117
]
116
118
}
@@ -201,11 +203,15 @@ variable "cluster_autoscaler_enabled" {
201
203
}
202
204
variable "cluster_autoscaler_min_nodes_1" {
203
205
default = 3
204
- description = " Minimum number of nodes on the node pool to be scheduled by the Kubernetes"
206
+ description = " Minimum number of nodes on the node pool to be scheduled by the Kubernetes (pool1) "
205
207
}
206
208
variable "cluster_autoscaler_max_nodes_1" {
207
209
default = 10
208
- description = " Maximum number of nodes on the node pool to be scheduled by the Kubernetes"
210
+ description = " Maximum number of nodes on the node pool to be scheduled by the Kubernetes (pool1)"
211
+ }
212
+ variable "existent_oke_nodepool_id_for_autoscaler_1" {
213
+ default = " "
214
+ description = " Nodepool Id of the existent OKE to use with Cluster Autoscaler (pool1)"
209
215
}
210
216
211
217
# # OKE Node Pool Details
@@ -269,7 +275,7 @@ variable "create_compartment_policies" {
269
275
variable "tag_values" {
270
276
type = map (any )
271
277
default = { " freeformTags" = {
272
- " Environment" = " Development" , # e.g.: Demo, Sandbox, Development, QA, Stage, ...
278
+ " Environment" = " Development" , # e.g.: Demo, Sandbox, Development, QA, Stage, ...
273
279
" DeploymentType" = " generic" } } # e.g.: App Type 1, App Type 2, Red, Purple, ...
274
280
description = " Use Tagging to add metadata to resources. All resources created by this stack will be tagged with the selected tag values."
275
281
}
0 commit comments