Skip to content

Commit d671da4

Browse files
committed
modified: main.tf
modified: modules/oke/main.tf modified: modules/oke/variables.tf modified: schema.yaml modified: variables.tf
1 parent d7f527d commit d671da4

File tree

5 files changed

+27
-8
lines changed

5 files changed

+27
-8
lines changed

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ module "oke" {
4949
tenancy_ocid = var.tenancy_ocid
5050
compartment_ocid = var.compartment_ocid
5151
cluster_name = var.cluster_name
52+
cni_type = var.cni_type
53+
cluster_type = var.cluster_type
5254
kubernetes_version = var.kubernetes_version
5355
oke_nodepool_name = var.oke_nodepool_name
5456
oke_nodepool_shape = var.oke_nodepool_shape

modules/oke/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ resource "oci_containerengine_cluster" "oke_cluster" {
44
name = var.cluster_name
55
vcn_id = var.vcn_id
66

7+
#Optional
8+
cluster_pod_network_options {
9+
cni_type = var.cni_type
10+
}
11+
712
endpoint_config {
813
is_public_ip_enabled = var.cluster_endpoint_config_is_public_ip_enabled
914
# nsg_ids = var.cluster_endpoint_config_nsg_ids

modules/oke/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ variable "ssh_public_key" {}
1717
variable "create_new_oke_cluster" {}
1818
variable "existing_oke_cluster_id" {}
1919
variable "cluster_endpoint_config_is_public_ip_enabled" {}
20+
variable "cni_type" {}
2021
locals {
2122
cluster_k8s_latest_version = reverse(sort(data.oci_containerengine_cluster_option.oke.kubernetes_versions))[0]
2223
node_pool_k8s_latest_version = reverse(sort(data.oci_containerengine_node_pool_option.oke.kubernetes_versions))[0]

schema.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ variables:
265265
visible: create_new_oke_cluster
266266
dependsOn:
267267
compartmentId: compartment_ocid
268-
default: "VM.Standard.E3.Flex"
268+
default: "VM.Standard.E5.Flex"
269269

270270
oke_nodepool_size:
271271
type: int
@@ -428,13 +428,12 @@ variables:
428428
mysql_shape:
429429
type: enum
430430
enum:
431-
- "VM.Standard.E2.1"
432-
- "VM.Standard.E2.2"
433-
- "VM.Standard.E2.3"
434-
- "VM.Standard.E2.4"
431+
- "MySQL.VM.Standard.E4.1.16GB"
432+
- "MySQL.VM.Standard.E4.2.32GB"
433+
- "MySQL.VM.Standard.E4.4.64GB
435434
title: "OCI MySQL instance shape"
436435
description: "Shape of the OCI MySQL intance"
437-
default: "VM.Standard.E2.2"
436+
default: "MySQL.VM.Standard.E4.1.16GB"
438437

439438
enable_backups:
440439
type: boolean
@@ -470,7 +469,7 @@ variables:
470469
title: "Staging Server Instance Shape"
471470
dependsOn:
472471
compartmentId: compartment_ocid
473-
default: "VM.Standard.E3.Flex"
472+
default: "VM.Standard.E5.Flex"
474473
required: true
475474

476475
public_edge_node:

variables.tf

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,18 @@ variable "kubernetes_version" {
8484
default = "v1.34.1"
8585
}
8686

87+
variable "cni_type" {
88+
description = "CNI type (e.g., OCI_VCN_IP_NATIVE or FLANNEL_OVERLAY)."
89+
type = string
90+
default = "OCI_VCN_IP_NATIVE"
91+
}
92+
93+
variable "cluster_type" {
94+
description = "OKE cluster type (ENHANCED_CLUSTER or BASIC_CLUSTER)."
95+
type = string
96+
default = "ENHANCED_CLUSTER"
97+
}
98+
8799
variable "oke_nodepool_name" {
88100
default = "tc-nodepool"
89101
}
@@ -203,7 +215,7 @@ variable "mysql_admin_password" {
203215

204216

205217
variable "mysql_shape" {
206-
default = "MySQL.VM.Standard.E4.1.16GB"
218+
default = ""
207219
}
208220

209221
variable "enable_backups" {

0 commit comments

Comments
 (0)