@@ -54,7 +54,7 @@ module "oke" {
5454 " NvidiaGpuPlugin" = {
5555 remove_addon_resources_on_delete = true
5656 override_existing = true
57- configurations = [
57+ configurations = [
5858 {
5959 key = " isDcgmExporterDisabled"
6060 value = " true"
@@ -65,27 +65,26 @@ module "oke" {
6565 anytrue ([
6666 var . worker_rdma_shape == " BM.GPU.MI300X.8" ,
6767 var . worker_gpu_shape == " BM.GPU.MI300X.8"
68- ]) ? {
68+ ]) ? {
6969 " AmdGpuPlugin" = {
7070 remove_addon_resources_on_delete = true
7171 override_existing = true
7272 }
7373 } : {}
7474 )
75- cni_type = var. cni_type == " VCN-Native Pod Networking" ? " npn" : " flannel"
76- control_plane_allowed_cidrs = flatten (tolist ([var . control_plane_allowed_cidrs ]))
77- control_plane_is_public = true
78- create_bastion = var. create_bastion
79- create_cluster = true
80- create_iam_defined_tags = false
81- create_iam_resources = false
82- create_iam_tag_namespace = false
83- create_operator = var. create_operator
84- create_vcn = var. create_vcn
85- kubernetes_version = var. kubernetes_version
86- load_balancers = " internal"
87- lockdown_default_seclist = true
88- # TODO input variable + schema for image selection
75+ cni_type = var. cni_type == " VCN-Native Pod Networking" ? " npn" : " flannel"
76+ control_plane_allowed_cidrs = flatten (tolist ([var . control_plane_allowed_cidrs ]))
77+ control_plane_is_public = true
78+ create_bastion = var. create_bastion
79+ create_cluster = true
80+ create_iam_defined_tags = false
81+ create_iam_resources = false
82+ create_iam_tag_namespace = false
83+ create_operator = var. create_operator
84+ create_vcn = var. create_vcn
85+ kubernetes_version = var. kubernetes_version
86+ load_balancers = " internal"
87+ lockdown_default_seclist = true
8988 operator_image_type = " platform"
9089 operator_image_os = " Canonical Ubuntu" # Ignored when bastion_image_type = "custom"
9190 operator_image_os_version = " 22.04"
@@ -103,7 +102,7 @@ module "oke" {
103102 boot_volume_size = var.operator_shape_boot
104103 }
105104 output_detail = true
106- pods_cidr = " 10.240.0.0/12" # TODO input var (but keep expanded default)
105+ pods_cidr = " 10.240.0.0/12"
107106 # services_cidr = "10.96.0.0/16"
108107 # preferred_load_balancer = "internal"
109108 ssh_public_key = trimspace (var. ssh_public_key )
@@ -139,7 +138,7 @@ module "oke" {
139138 }
140139 allow_rules_internal_lb = {
141140 " Allow TCP ingress to internal load balancers from internal VCN/DRG" = {
142- protocol = " all" , port = - 1 , source = " 10.0.0.0/8 " , source_type = " CIDR_BLOCK" ,
141+ protocol = " all" , port = - 1 , source = var.vcn_cidrs , source_type = " CIDR_BLOCK" ,
143142 }
144143 }
145144}
0 commit comments