@@ -2,12 +2,12 @@ resource "oci_core_vcn" "okell_vcn" {
2
2
cidr_block = " 10.0.0.0/16"
3
3
compartment_id = var. ociCompartmentOcid
4
4
display_name = " grabdish"
5
- dns_label = " grabdish"
5
+ dns_label = " grabdish"
6
6
}
7
7
resource "oci_core_internet_gateway" "ig" {
8
- compartment_id = var. ociCompartmentOcid
9
- display_name = " ClusterInternetGateway"
10
- vcn_id = oci_core_vcn. okell_vcn . id
8
+ compartment_id = var. ociCompartmentOcid
9
+ display_name = " ClusterInternetGateway"
10
+ vcn_id = oci_core_vcn. okell_vcn . id
11
11
}
12
12
/* resource "oci_core_dhcp_options" "grabdish" {
13
13
#Required
@@ -54,18 +54,18 @@ resource oci_core_public_ip puip {
54
54
#public_ip_pool_id = <<Optional value not found in discovery>>
55
55
}
56
56
*/
57
- resource oci_core_nat_gateway ngw {
57
+ resource " oci_core_nat_gateway" " ngw" {
58
58
block_traffic = " false"
59
59
compartment_id = var. ociCompartmentOcid
60
- display_name = " ngw"
60
+ display_name = " ngw"
61
61
freeform_tags = {
62
62
}
63
63
# public_ip_id = oci_core_public_ip.puip.id
64
- vcn_id = oci_core_vcn. okell_vcn . id
64
+ vcn_id = oci_core_vcn. okell_vcn . id
65
65
}
66
- resource oci_core_service_gateway sg {
66
+ resource " oci_core_service_gateway" "sg" {
67
67
compartment_id = var. ociCompartmentOcid
68
- display_name = " grabdish"
68
+ display_name = " grabdish"
69
69
freeform_tags = {
70
70
}
71
71
# route_table_id = <<Optional value not found in discovery>>
@@ -74,9 +74,9 @@ resource oci_core_service_gateway sg {
74
74
}
75
75
vcn_id = oci_core_vcn. okell_vcn . id
76
76
}
77
- resource oci_core_route_table private {
77
+ resource " oci_core_route_table" " private" {
78
78
compartment_id = var. ociCompartmentOcid
79
- display_name = " private"
79
+ display_name = " private"
80
80
freeform_tags = {
81
81
}
82
82
route_rules {
@@ -101,7 +101,7 @@ resource oci_core_route_table private {
101
101
*/
102
102
vcn_id = oci_core_vcn. okell_vcn . id
103
103
}
104
- resource oci_core_default_route_table public {
104
+ resource " oci_core_default_route_table" " public" {
105
105
display_name = " public"
106
106
freeform_tags = {
107
107
}
@@ -116,46 +116,46 @@ resource oci_core_default_route_table public {
116
116
resource "oci_core_subnet" "endpoint_Subnet" {
117
117
# Required
118
118
# availability_domain = data.oci_identity_availability_domain.ad1.name
119
- cidr_block = " 10.0.0.0/28"
120
- compartment_id = var. ociCompartmentOcid
121
- vcn_id = oci_core_vcn. okell_vcn . id
119
+ cidr_block = " 10.0.0.0/28"
120
+ compartment_id = var. ociCompartmentOcid
121
+ vcn_id = oci_core_vcn. okell_vcn . id
122
122
# Provider code tries to maintain compatibility with old versions.
123
- security_list_ids = [oci_core_security_list . endpoint . id ]
124
- display_name = " SubNet1ForEndpoint"
123
+ security_list_ids = [oci_core_security_list . endpoint . id ]
124
+ display_name = " SubNet1ForEndpoint"
125
125
prohibit_public_ip_on_vnic = " false"
126
- route_table_id = oci_core_vcn. okell_vcn . default_route_table_id
127
- dns_label = " endpoint"
126
+ route_table_id = oci_core_vcn. okell_vcn . default_route_table_id
127
+ dns_label = " endpoint"
128
128
}
129
129
resource "oci_core_subnet" "nodePool_Subnet" {
130
130
# Required
131
131
# availability_domain = data.oci_identity_availability_domain.ad1.name
132
- cidr_block = " 10.0.10.0/24"
133
- compartment_id = var. ociCompartmentOcid
134
- vcn_id = oci_core_vcn. okell_vcn . id
132
+ cidr_block = " 10.0.10.0/24"
133
+ compartment_id = var. ociCompartmentOcid
134
+ vcn_id = oci_core_vcn. okell_vcn . id
135
135
# Provider code tries to maintain compatibility with old versions.
136
- security_list_ids = [oci_core_security_list . nodePool . id ]
137
- display_name = " SubNet1ForNodePool"
136
+ security_list_ids = [oci_core_security_list . nodePool . id ]
137
+ display_name = " SubNet1ForNodePool"
138
138
prohibit_public_ip_on_vnic = " true"
139
- route_table_id = oci_core_route_table. private . id
140
- dns_label = " nodepool"
139
+ route_table_id = oci_core_route_table. private . id
140
+ dns_label = " nodepool"
141
141
}
142
142
resource "oci_core_subnet" "svclb_Subnet" {
143
143
# Required
144
144
# availability_domain = data.oci_identity_availability_domain.ad1.name
145
- cidr_block = " 10.0.20.0/24"
146
- compartment_id = var. ociCompartmentOcid
147
- vcn_id = oci_core_vcn. okell_vcn . id
145
+ cidr_block = " 10.0.20.0/24"
146
+ compartment_id = var. ociCompartmentOcid
147
+ vcn_id = oci_core_vcn. okell_vcn . id
148
148
# Provider code tries to maintain compatibility with old versions.
149
- security_list_ids = [oci_core_default_security_list . svcLB . id ]
150
- display_name = " SubNet1ForSvcLB"
151
- route_table_id = oci_core_vcn. okell_vcn . default_route_table_id
152
- dhcp_options_id = oci_core_vcn. okell_vcn . default_dhcp_options_id
149
+ security_list_ids = [oci_core_default_security_list . svcLB . id ]
150
+ display_name = " SubNet1ForSvcLB"
151
+ route_table_id = oci_core_vcn. okell_vcn . default_route_table_id
152
+ dhcp_options_id = oci_core_vcn. okell_vcn . default_dhcp_options_id
153
153
prohibit_public_ip_on_vnic = " false"
154
- dns_label = " svclb"
154
+ dns_label = " svclb"
155
155
}
156
- resource oci_core_security_list nodePool {
156
+ resource " oci_core_security_list" " nodePool" {
157
157
compartment_id = var. ociCompartmentOcid
158
- display_name = " nodepool"
158
+ display_name = " nodepool"
159
159
egress_security_rules {
160
160
description = " Allow pods on one worker node to communicate with pods on other worker nodes"
161
161
destination = " 10.0.10.0/24"
@@ -221,7 +221,7 @@ resource oci_core_security_list nodePool {
221
221
}
222
222
# udp_options = <<Optional value not found in discovery>>
223
223
}
224
- /*
224
+ /*
225
225
egress_security_rules {
226
226
description = "Allow nodes to communicate with OKE to ensure correct start-up and continued functioning (1)"
227
227
destination = data.oci_core_services.services.services.1.cidr_block
@@ -309,7 +309,7 @@ resource oci_core_security_list nodePool {
309
309
}
310
310
# udp_options = <<Optional value not found in discovery>>
311
311
}
312
- /*
312
+ /*
313
313
ingress_security_rules {
314
314
#description = <<Optional value not found in discovery>>
315
315
#icmp_options = <<Optional value not found in discovery>>
@@ -342,9 +342,9 @@ resource oci_core_security_list nodePool {
342
342
vcn_id = oci_core_vcn. okell_vcn . id
343
343
}
344
344
345
- resource oci_core_security_list endpoint {
345
+ resource " oci_core_security_list" " endpoint" {
346
346
compartment_id = var. ociCompartmentOcid
347
- display_name = " endpoint"
347
+ display_name = " endpoint"
348
348
egress_security_rules {
349
349
description = " Allow Kubernetes Control Plane to communicate with OKE"
350
350
destination = data. oci_core_services . services . services . 0 . cidr_block
@@ -442,8 +442,8 @@ resource oci_core_security_list endpoint {
442
442
vcn_id = oci_core_vcn. okell_vcn . id
443
443
}
444
444
445
- resource oci_core_default_security_list svcLB {
446
- display_name = " svcLB"
445
+ resource " oci_core_default_security_list" " svcLB" {
446
+ display_name = " svcLB"
447
447
manage_default_resource_id = oci_core_vcn. okell_vcn . default_security_list_id
448
448
}
449
449
data "oci_core_services" "services" {
0 commit comments