Skip to content

Commit 5253d01

Browse files
committed
Fix missing LB rule
1 parent afd0e10 commit 5253d01

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

deploy/devops/tf-env/oke.tf

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,18 @@ locals {
44
workers_subnet_cidr = "10.22.144.0/20"
55
cp_subnet_cidr = "10.22.0.8/29"
66
vcn_cidr = "10.22.0.0/16"
7-
my_count = 1
87
}
98

109
resource "oci_core_vcn" "oke_vcn" {
1110
compartment_id = var.compartment_ocid
1211
cidr_blocks = [local.vcn_cidr]
1312
display_name = "oke-${random_string.deploy_id.result}-vcn"
1413
dns_label = "oke"
15-
count = local.my_count
1614
}
1715

1816
resource "oci_core_security_list" "pub_lb_sl" {
1917
compartment_id = var.compartment_ocid
20-
vcn_id = oci_core_vcn.oke_vcn.0.id
18+
vcn_id = oci_core_vcn.oke_vcn.id
2119
ingress_security_rules {
2220
protocol = "6"
2321
source = "0.0.0.0/0"
@@ -43,7 +41,7 @@ resource "oci_core_security_list" "pub_lb_sl" {
4341
resource "oci_core_subnet" "pub_lb_subnet" {
4442
cidr_block = local.lb_subnet_cidr
4543
compartment_id = var.compartment_ocid
46-
vcn_id = oci_core_vcn.oke_vcn.0.id
44+
vcn_id = oci_core_vcn.oke_vcn.id
4745
prohibit_public_ip_on_vnic = false
4846
dns_label = "plb"
4947
display_name = "pub_lb"
@@ -96,7 +94,7 @@ module "oke" {
9694
pods = { create = "never" }
9795
}
9896
create_vcn = false
99-
vcn_id = oci_core_vcn.oke_vcn.0.id
97+
vcn_id = oci_core_vcn.oke_vcn.id
10098
# Network module - security
10199
allow_node_port_access = true
102100
allow_worker_internet_access = true

0 commit comments

Comments
 (0)