-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
vars.tf
239 lines (191 loc) · 3.97 KB
/
vars.tf
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
227
228
229
230
231
232
233
234
235
236
237
238
239
variable "region" {
type = string
}
variable "availability_domain" {
type = string
}
variable "tenancy_ocid" {
}
variable "compartment_ocid" {
type = string
}
variable "environment" {
type = string
}
variable "cluster_name" {
type = string
}
variable "os_image_id" {
type = string
}
variable "k3s_version" {
type = string
default = "latest"
}
variable "k3s_subnet" {
type = string
default = "default_route_table"
}
variable "fault_domains" {
type = list(any)
default = ["FAULT-DOMAIN-1", "FAULT-DOMAIN-2", "FAULT-DOMAIN-3"]
}
variable "public_key_path" {
type = string
default = "~/.ssh/id_rsa.pub"
description = "Path to your public workstation SSH key"
}
variable "compute_shape" {
type = string
default = "VM.Standard.A1.Flex"
}
variable "public_lb_shape" {
type = string
default = "flexible"
}
variable "oci_identity_dynamic_group_name" {
type = string
default = "Compute_Dynamic_Group"
description = "Dynamic group which contains all instance in this compartment"
}
variable "oci_identity_policy_name" {
type = string
default = "Compute_To_Oci_Api_Policy"
description = "Policy to allow dynamic group, to read OCI api without auth"
}
variable "oci_core_vcn_dns_label" {
type = string
default = "defaultvcn"
}
variable "oci_core_subnet_dns_label10" {
type = string
default = "defaultsubnet10"
}
variable "oci_core_subnet_dns_label11" {
type = string
default = "defaultsubnet11"
}
variable "oci_core_vcn_cidr" {
type = string
default = "10.0.0.0/16"
}
variable "oci_core_subnet_cidr10" {
type = string
default = "10.0.0.0/24"
}
variable "oci_core_subnet_cidr11" {
type = string
default = "10.0.1.0/24"
}
variable "kube_api_port" {
type = number
default = 6443
}
variable "k3s_load_balancer_name" {
type = string
default = "k3s internal load balancer"
}
variable "public_load_balancer_name" {
type = string
default = "K3s public LB"
}
variable "http_lb_port" {
type = number
default = 80
}
variable "https_lb_port" {
type = number
default = 443
}
variable "ingress_controller_http_nodeport" {
type = number
default = 30080
}
variable "ingress_controller_https_nodeport" {
type = number
default = 30443
}
variable "k3s_server_pool_size" {
type = number
default = 1
}
variable "k3s_worker_pool_size" {
type = number
default = 2
}
variable "k3s_extra_worker_node" {
type = bool
default = true
}
variable "unique_tag_key" {
type = string
default = "k3s-provisioner"
}
variable "unique_tag_value" {
type = string
default = "https://github.com/garutilorenzo/k3s-oci-cluster"
}
variable "my_public_ip_cidr" {
type = string
description = "My public ip CIDR"
}
variable "istio_release" {
type = string
default = "1.16.1"
}
variable "disable_ingress" {
type = bool
default = false
}
variable "ingress_controller" {
type = string
default = "default"
validation {
condition = contains(["default", "nginx", "traefik2", "istio"], var.ingress_controller)
error_message = "Supported ingress controllers are: default, nginx, traefik2, istio"
}
}
variable "nginx_ingress_release" {
type = string
default = "v1.5.1"
}
variable "install_certmanager" {
type = bool
default = true
}
variable "certmanager_release" {
type = string
default = "v1.11.0"
}
variable "certmanager_email_address" {
type = string
default = "[email protected]"
}
variable "install_longhorn" {
type = bool
default = true
}
variable "longhorn_release" {
type = string
default = "v1.4.0"
}
variable "install_argocd" {
type = bool
default = true
}
variable "argocd_release" {
type = string
default = "v2.4.11"
}
variable "install_argocd_image_updater" {
type = bool
default = true
}
variable "argocd_image_updater_release" {
type = string
default = "v0.12.0"
}
variable "expose_kubeapi" {
type = bool
default = false
}