forked from coreos/tectonic-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.tf
300 lines (236 loc) · 9.18 KB
/
config.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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
variable "tectonic_config_version" {
description = <<EOF
(internal) This declares the version of the global configuration variables.
It has no impact on generated assets but declares the version contract of the configuration.
EOF
default = "1.0"
}
terraform {
required_version = ">= 0.9.6"
}
variable "tectonic_container_images" {
description = "(internal) Container images to use"
type = "map"
default = {
hyperkube = "quay.io/coreos/hyperkube:v1.6.4_coreos.0"
pod_checkpointer = "quay.io/coreos/pod-checkpointer:2cad4cac4186611a79de1969e3ea4924f02f459e"
bootkube = "quay.io/coreos/bootkube:v0.4.4"
console = "quay.io/coreos/tectonic-console:v1.5.6"
identity = "quay.io/coreos/dex:v2.4.1"
container_linux_update_operator = "quay.io/coreos/container-linux-update-operator:v0.2.0"
kube_version_operator = "quay.io/coreos/kube-version-operator:v1.6.2"
tectonic_channel_operator = "quay.io/coreos/tectonic-channel-operator:0.3.2"
node_agent = "quay.io/coreos/node-agent:787844277099e8c10d617c3c807244fc9f873e46"
prometheus_operator = "quay.io/coreos/prometheus-operator:v0.9.1"
tectonic_prometheus_operator = "quay.io/coreos/tectonic-prometheus-operator:v1.2.0"
node_exporter = "quay.io/prometheus/node-exporter:v0.14.0"
kube_state_metrics = "quay.io/coreos/kube-state-metrics:v0.5.0"
config_reload = "quay.io/coreos/configmap-reload:v0.0.1"
heapster = "gcr.io/google_containers/heapster:v1.3.0"
addon_resizer = "gcr.io/google_containers/addon-resizer:1.7"
stats_emitter = "quay.io/coreos/tectonic-stats:6e882361357fe4b773adbf279cddf48cb50164c1"
stats_extender = "quay.io/coreos/tectonic-stats-extender:487b3da4e175da96dabfb44fba65cdb8b823db2e"
error_server = "quay.io/coreos/tectonic-error-server:1.0"
ingress_controller = "gcr.io/google_containers/nginx-ingress-controller:0.9.0-beta.3"
kubedns = "gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.1"
kubednsmasq = "gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.1"
kubedns_sidecar = "gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.1"
flannel = "quay.io/coreos/flannel:v0.7.1-amd64"
etcd = "quay.io/coreos/etcd:v3.1.6"
etcd_operator = "quay.io/coreos/etcd-operator:v0.2.5"
kenc = "quay.io/coreos/kenc:48b6feceeee56c657ea9263f47b6ea091e8d3035"
awscli = "quay.io/coreos/awscli:025a357f05242fdad6a81e8a6b520098aa65a600"
kube_version = "quay.io/coreos/kube-version:0.1.0"
}
}
variable "tectonic_versions" {
description = "(internal) Versions of the components to use"
type = "map"
default = {
etcd = "3.1.6"
prometheus = "v1.6.3"
monitoring = "1.2.0"
kubernetes = "1.6.2+tectonic.1"
tectonic = "1.6.2-tectonic.1"
}
}
variable "tectonic_service_cidr" {
type = "string"
default = "10.3.0.0/16"
description = "This declares the IP range to assign Kubernetes service cluster IPs in CIDR notation."
}
variable "tectonic_cluster_cidr" {
type = "string"
default = "10.2.0.0/16"
description = "This declares the IP range to assign Kubernetes pod IPs in CIDR notation."
}
variable "tectonic_master_count" {
type = "string"
default = "1"
description = <<EOF
The number of master nodes to be created.
This applies only to cloud platforms.
EOF
}
variable "tectonic_worker_count" {
type = "string"
default = "3"
description = <<EOF
The number of worker nodes to be created.
This applies only to cloud platforms.
EOF
}
variable "tectonic_etcd_count" {
type = "string"
default = "0"
description = <<EOF
The number of etcd nodes to be created.
If set to zero, the count of etcd nodes will be determined automatically.
Note: This is currently only supported on AWS.
EOF
}
variable "tectonic_etcd_servers" {
description = <<EOF
(optional) List of external etcd v3 servers to connect with (hostnames/IPs only).
Needs to be set if using an external etcd cluster.
Example: `["etcd1", "etcd2", "etcd3"]`
EOF
type = "list"
default = [""]
}
variable "tectonic_etcd_ca_cert_path" {
type = "string"
default = ""
description = <<EOF
(optional) The path of the file containing the CA certificate for TLS communication with etcd.
Note: This works only when used in conjunction with an external etcd cluster.
If set, the variables `tectonic_etcd_servers`, `tectonic_etcd_client_cert_path`, and `tectonic_etcd_client_key_path` must also be set.
EOF
}
variable "tectonic_etcd_client_cert_path" {
type = "string"
default = ""
description = <<EOF
(optional) The path of the file containing the client certificate for TLS communication with etcd.
Note: This works only when used in conjunction with an external etcd cluster.
If set, the variables `tectonic_etcd_servers`, `tectonic_etcd_ca_cert_path`, and `tectonic_etcd_client_key_path` must also be set.
EOF
}
variable "tectonic_etcd_client_key_path" {
type = "string"
default = ""
description = <<EOF
(optional) The path of the file containing the client key for TLS communication with etcd.
Note: This works only when used in conjunction with an external etcd cluster.
If set, the variables `tectonic_etcd_servers`, `tectonic_etcd_ca_cert_path`, and `tectonic_etcd_client_cert_path` must also be set.
EOF
}
variable "tectonic_base_domain" {
type = "string"
description = <<EOF
The base DNS domain of the cluster.
Example: `openstack.dev.coreos.systems`.
Note: This field MUST be set manually prior to creating the cluster.
This applies only to cloud platforms.
EOF
}
variable "tectonic_cluster_name" {
type = "string"
description = <<EOF
The name of the cluster.
If used in a cloud-environment, this will be prepended to `tectonic_base_domain` resulting in the URL to the Tectonic console.
Note: This field MUST be set manually prior to creating the cluster.
Warning: Special characters in the name like '.' may cause errors on OpenStack platforms due to resource name constraints.
EOF
}
variable "tectonic_pull_secret_path" {
type = "string"
default = ""
description = <<EOF
The path the pull secret file in JSON format.
Note: This field MUST be set manually prior to creating the cluster unless `tectonic_vanilla_k8s` is set to `true`.
EOF
}
variable "tectonic_license_path" {
type = "string"
default = ""
description = <<EOF
The path to the tectonic licence file.
Note: This field MUST be set manually prior to creating the cluster unless `tectonic_vanilla_k8s` is set to `true`.
EOF
}
variable "tectonic_cl_channel" {
type = "string"
default = "stable"
description = <<EOF
The Container Linux update channel.
Examples: `stable`, `beta`, `alpha`
EOF
}
variable "tectonic_update_server" {
type = "string"
default = "https://tectonic.update.core-os.net"
description = "(internal) The URL of the Tectonic Omaha update server"
}
variable "tectonic_update_channel" {
type = "string"
default = "tectonic-1.6"
description = "(internal) The Tectonic Omaha update channel"
}
variable "tectonic_update_app_id" {
type = "string"
default = "6bc7b986-4654-4a0f-94b3-84ce6feb1db4"
description = "(internal) The Tectonic Omaha update App ID"
}
variable "tectonic_admin_email" {
type = "string"
description = <<EOF
The e-mail address used to login as the admin user to the Tectonic Console.
Note: This field MUST be set manually prior to creating the cluster.
EOF
}
variable "tectonic_admin_password_hash" {
type = "string"
description = <<EOF
The bcrypt hash of admin user password to login to the Tectonic Console.
Use the bcrypt-hash tool (https://github.com/coreos/bcrypt-tool/releases/tag/v1.0.0) to generate it.
Note: This field MUST be set manually prior to creating the cluster.
EOF
}
variable "tectonic_ca_cert" {
type = "string"
default = ""
description = <<EOF
(optional) The content of the PEM-encoded CA certificate, used to generate Tectonic Console's server certificate.
If left blank, a CA certificate will be automatically generated.
EOF
}
variable "tectonic_ca_key" {
type = "string"
default = ""
description = <<EOF
(optional) The content of the PEM-encoded CA key, used to generate Tectonic Console's server certificate.
This field is mandatory if `tectonic_ca_cert` is set.
EOF
}
variable "tectonic_ca_key_alg" {
type = "string"
default = "RSA"
description = <<EOF
(optional) The algorithm used to generate tectonic_ca_key.
The default value is currently recommend.
This field is mandatory if `tectonic_ca_cert` is set.
EOF
}
variable "tectonic_vanilla_k8s" {
default = false
description = <<EOF
If set to true, a vanilla Kubernetes cluster will be deployed, omitting any Tectonic assets.
EOF
}
variable "tectonic_experimental" {
default = false
description = <<EOF
If set to true, experimental Tectonic assets are being deployed.
EOF
}