forked from oracle-terraform-modules/terraform-oci-oke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathterraform.tfvars.example
226 lines (194 loc) · 6.75 KB
/
terraform.tfvars.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# Copyright 2017, 2021 Oracle Corporation and/or affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
# Identity and access parameters
api_fingerprint = ""
# api_private_key = <<EOT
#-----BEGIN RSA PRIVATE KEY-----
#content+of+api+key
#-----END RSA PRIVATE KEY-----
#EOT
api_private_key_path = ""
home_region = "us-ashburn-1"
region = "us-phoenix-1"
tenancy_id = ""
user_id = ""
# general oci parameters
compartment_id = ""
label_prefix = "dev"
# ssh keys
ssh_private_key = ""
# ssh_private_key = <<EOT
#-----BEGIN RSA PRIVATE KEY-----
#content+of+api+key
#-----END RSA PRIVATE KEY-----
#EOT
ssh_private_key_path = "~/.ssh/id_rsa"
# ssh_public_key = ""
# ssh_public_key_path = "none"
# ssh_public_key_path = "~/.ssh/id_rsa.pub"
# networking
create_drg = false
drg_display_name = "drg"
internet_gateway_route_rules = []
local_peering_gateways = {}
lockdown_default_seclist = true
nat_gateway_route_rules = []
nat_gateway_public_ip_id = "none"
subnets = {
bastion = { netnum = 0, newbits = 13 }
operator = { netnum = 1, newbits = 13 }
cp = { netnum = 2, newbits = 13 }
int_lb = { netnum = 16, newbits = 11 }
pub_lb = { netnum = 17, newbits = 11 }
workers = { netnum = 1, newbits = 2 }
}
vcn_cidrs = ["10.0.0.0/16"]
vcn_dns_label = "oke"
vcn_name = "vcnoke"
# bastion host
create_bastion_host = true
bastion_access = ["anywhere"]
bastion_image_id = "Autonomous"
bastion_os_version = "7.9"
bastion_shape = {
shape = "VM.Standard.E4.Flex",
ocpus = 1,
memory = 4,
boot_volume_size = 50
}
bastion_state = "RUNNING"
bastion_timezone = "Australia/Sydney"
bastion_type = "public"
upgrade_bastion = false
## bastion notification
enable_bastion_notification = false
bastion_notification_endpoint = ""
bastion_notification_protocol = "EMAIL"
bastion_notification_topic = "bastion_server_notification"
# bastion service
create_bastion_service = false
bastion_service_access = ["0.0.0.0/0"]
bastion_service_name = "bastion"
bastion_service_target_subnet = "operator"
# operator host
create_operator = true
operator_image_id = "Oracle"
enable_operator_instance_principal = true
operator_nsg_ids = []
operator_os_version = "8"
operator_shape = {
shape = "VM.Standard.E4.Flex",
ocpus = 1,
memory = 4,
boot_volume_size = 50
}
operator_state = "RUNNING"
operator_timezone = "Australia/Sydney"
upgrade_operator = false
## operator notification
enable_operator_notification = false
operator_notification_endpoint = ""
operator_notification_protocol = "EMAIL"
operator_notification_topic = ""
# availability_domains
availability_domains = {
bastion = 1,
operator = 1
}
# oke cluster options
admission_controller_options = {
PodSecurityPolicy = false
}
allow_node_port_access = false
allow_worker_internet_access = true
allow_worker_ssh_access = false
cluster_name = "oke"
control_plane_type = "private"
control_plane_allowed_cidrs = ["0.0.0.0/0"]
control_plane_nsgs = []
dashboard_enabled = false
kubernetes_version = "v1.20.11"
pods_cidr = "10.244.0.0/16"
services_cidr = "10.96.0.0/16"
## oke cluster kms integration
use_encryption = false
kms_key_id = ""
## oke cluster container image policy and keys
use_signed_images = false
image_signing_keys = []
# node pools
check_node_active = "all"
node_pools = {
np1 = { shape = "VM.Standard.E4.Flex", ocpus = 1, memory = 16, node_pool_size = 1, boot_volume_size = 150, label = { app = "frontend", pool = "np1" } }
np2 = { shape = "VM.Standard.E4.Flex", ocpus = 1, memory = 16, node_pool_size = 1, boot_volume_size = 150, label = { app = "frontend", pool = "np2" } }
# np3 = { shape = "VM.Standard.E4.Flex", ocpus = 1, memory = 16, node_pool_size = 1, boot_volume_size = 150, label = { app = "frontend", pool = "np1" } }
# np4 = { shape = "VM.Standard.E4.Flex", ocpus = 1, memory = 16, node_pool_size = 1, boot_volume_size = 150, label = { app = "frontend", pool = "np1" } }
# np2 = {shape="VM.Standard.E4.Flex",ocpus=4,memory=16,node_pool_size=1,boot_volume_size=150, label={app="backend",pool="np2"}}
# np3 = {shape="VM.Standard.A1.Flex",ocpus=8,memory=16,node_pool_size=1,boot_volume_size=150, label={pool="np3"}}
# np4 = {shape="BM.Standard2.52",node_pool_size=1,boot_volume_size=150}
# np5 = {shape="VM.Optimized3.Flex",node_pool_size=6}
# np5 = {shape="BM.Standard.A1.160",node_pool_size=6}
# np6 = {shape="VM.Standard.E2.2", node_pool_size=5}
# np7 = {shape="BM.DenseIO2.52", node_pool_size=5}
# np8 = {shape="BM.GPU3.8", node_pool_size=1}
# np9 = {shape="BM.GPU4.8", node_pool_size=5}
# np10 = {shape="BM.HPC2.36 ", node_pool_size=5}
}
node_pool_image_id = "none"
node_pool_name_prefix = "np"
node_pool_os = "Oracle Linux"
node_pool_os_version = "7.9"
worker_nsgs = []
worker_type = "private"
# upgrade of existing node pools
upgrade_nodepool = false
node_pools_to_drain = ["np1", "np2"]
nodepool_upgrade_method = "out_of_place"
# oke load balancers
enable_waf = false
load_balancers = "both"
preferred_load_balancer = "public"
# internal_lb_allowed_cidrs = ["172.16.1.0/24", "172.16.2.0/24"] # By default, anywhere i.e. 0.0.0.0/0 is allowed
# internal_lb_allowed_ports = [80, 443, "7001-7005"] # By default, only 80 and 443 are allowed
# public_lb_allowed_cidrs = ["0.0.0.0/0"] # By default, anywhere i.e. 0.0.0.0/0 is allowed
# public_lb_allowed_ports = [443,"9001-9002"] # By default, only 443 is allowed
# ocir
email_address = ""
secret_id = ""
secret_name = "ocirsecret"
secret_namespace = "default"
username = ""
# calico
enable_calico = false
calico_version = "3.19"
# horizontal and vertical pod autoscaling
enable_metric_server = false
enable_vpa = false
vpa_version = 0.8
# service account
create_service_account = false
service_account_name = ""
service_account_namespace = ""
service_account_cluster_role_binding = ""
# freeform_tags
freeform_tags = {
# vcn, bastion and operator freeform_tags are required
# add more freeform_tags in each as desired
vcn = {
environment = "dev"
}
bastion = {
access = "public",
environment = "dev",
role = "bastion",
security = "high"
}
operator = {
access = "restricted",
environment = "dev",
role = "operator",
security = "high"
}
}
# placeholder variable for debugging scripts. To be implemented in future
debug_mode = false