forked from oracle-terraform-modules/terraform-oci-oke
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables-extensions.tf
389 lines (317 loc) · 14.4 KB
/
variables-extensions.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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
# Copyright (c) 2017, 2023 Oracle Corporation and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
# CNI: Cilium
variable "cilium_install" {
default = false
description = "Whether to deploy the Cilium Helm chart. May only be enabled when cni_type = 'flannel'. See https://docs.cilium.io. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk."
type = bool
}
variable "cilium_reapply" {
default = false
description = "Whether to force reapply of the chart when no changes are detected, e.g. with state modified externally."
type = bool
}
variable "cilium_namespace" {
default = "kube-system"
description = "Kubernetes namespace for deployed resources."
type = string
}
variable "cilium_helm_version" {
default = "1.16.3"
description = "Version of the Helm chart to install. List available releases using `helm search repo [keyword] --versions`."
type = string
}
variable "cilium_helm_values" {
default = {}
description = "Map of individual Helm chart values. See https://registry.terraform.io/providers/hashicorp/helm/latest/docs/data-sources/template."
type = any
}
variable "cilium_helm_values_files" {
default = []
description = "Paths to a local YAML files with Helm chart values (as with `helm install -f` which supports multiple). Generate with defaults using `helm show values [CHART] [flags]`."
type = list(string)
}
# CNI: Multus
variable "multus_install" {
default = false
description = "Whether to deploy Multus. See <a href=https://github.com/k8snetworkplumbingwg/multus-cni>k8snetworkplumbingwg/multus-cni</a>. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk."
type = bool
}
variable "multus_namespace" {
default = "network"
description = "Kubernetes namespace for deployed resources."
type = string
}
variable "multus_daemonset_url" {
default = null
description = "The URL path to the Multus manifest. Leave unset for tags of <a href=https://github.com/k8snetworkplumbingwg/multus-cni>k8snetworkplumbingwg/multus-cni</a> using multus_version."
type = string
}
variable "multus_version" {
default = "3.9.3"
description = "Version of Multus to install. Ignored when an explicit value for multus_daemonset_url is provided."
type = string
}
# SR-IOV Device Plugin
variable "sriov_device_plugin_install" {
default = false
description = "Whether to deploy the SR-IOV Network Device Plugin. See <a href=https://github.com/k8snetworkplumbingwg/sriov-network-device-plugin>k8snetworkplumbingwg/sriov-network-device-plugin</a>. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk."
type = bool
}
variable "sriov_device_plugin_namespace" {
default = "network"
description = "Kubernetes namespace for deployed resources."
type = string
}
variable "sriov_device_plugin_daemonset_url" {
default = null
description = "The URL path to the manifest. Leave unset for tags of <a href=https://github.com/k8snetworkplumbingwg/sriov-network-device-plugin>k8snetworkplumbingwg/sriov-network-device-plugin</a> using sriov_device_plugin_version."
type = string
}
variable "sriov_device_plugin_version" {
default = "master"
description = "Version to install. Ignored when an explicit value for sriov_device_plugin_daemonset_url is provided."
type = string
}
# SR-IOV CNI Plugin
variable "sriov_cni_plugin_install" {
default = false
description = "Whether to deploy the SR-IOV CNI Plugin. See <a href=https://github.com/openshift/sriov-cni</a>. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk."
type = bool
}
variable "sriov_cni_plugin_namespace" {
default = "network"
description = "Kubernetes namespace for deployed resources."
type = string
}
variable "sriov_cni_plugin_daemonset_url" {
default = null
description = "The URL path to the manifest. Leave unset for tags of <a href=https://github.com/openshift/sriov-cni</a> using sriov_cni_plugin_version."
type = string
}
variable "sriov_cni_plugin_version" {
default = "master"
description = "Version to install. Ignored when an explicit value for sriov_cni_plugin_daemonset_url is provided."
type = string
}
# RDMA CNI Plugin
variable "rdma_cni_plugin_install" {
default = false
description = "Whether to deploy the SR-IOV CNI Plugin. See <a href=https://github.com/openshift/sriov-cni</a>. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk."
type = bool
}
variable "rdma_cni_plugin_namespace" {
default = "network"
description = "Kubernetes namespace for deployed resources."
type = string
}
variable "rdma_cni_plugin_daemonset_url" {
default = null
description = "The URL path to the manifest. Leave unset for tags of <a href=https://github.com/openshift/sriov-cni</a> using rdma_cni_plugin_version."
type = string
}
variable "rdma_cni_plugin_version" {
default = "master"
description = "Version to install. Ignored when an explicit value for rdma_cni_plugin_daemonset_url is provided."
type = string
}
# Metrics server
variable "metrics_server_install" {
default = false
description = "Whether to deploy the Kubernetes Metrics Server Helm chart. See <a href=https://github.com/kubernetes-sigs/metrics-server>kubernetes-sigs/metrics-server</a>. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk."
type = bool
}
variable "metrics_server_namespace" {
default = "metrics"
description = "Kubernetes namespace for deployed resources."
type = string
}
variable "metrics_server_helm_version" {
default = "3.8.3"
description = "Version of the Helm chart to install. List available releases using `helm search repo [keyword] --versions`."
type = string
}
variable "metrics_server_helm_values" {
default = {}
description = "Map of individual Helm chart values. See <a href=https://registry.terraform.io/providers/hashicorp/helm/latest/docs/data-sources/template>data.helm_template</a>."
type = map(string)
}
variable "metrics_server_helm_values_files" {
default = []
description = "Paths to a local YAML files with Helm chart values (as with `helm install -f` which supports multiple). Generate with defaults using `helm show values [CHART] [flags]`."
type = list(string)
}
# Cluster autoscaler
variable "cluster_autoscaler_install" {
default = false
description = "Whether to deploy the Kubernetes Cluster Autoscaler Helm chart. See <a href=https://github.com/kubernetes/autoscaler>kubernetes/autoscaler</a>. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk."
type = bool
}
variable "cluster_autoscaler_namespace" {
default = "kube-system"
description = "Kubernetes namespace for deployed resources."
type = string
}
variable "cluster_autoscaler_helm_version" {
default = "9.24.0"
description = "Version of the Helm chart to install. List available releases using `helm search repo [keyword] --versions`."
type = string
}
variable "cluster_autoscaler_helm_values" {
default = {}
description = "Map of individual Helm chart values. See <a href=https://registry.terraform.io/providers/hashicorp/helm/latest/docs/data-sources/template>data.helm_template</a>."
type = map(string)
}
variable "cluster_autoscaler_helm_values_files" {
default = []
description = "Paths to a local YAML files with Helm chart values (as with `helm install -f` which supports multiple). Generate with defaults using `helm show values [CHART] [flags]`."
type = list(string)
}
# Prometheus
variable "prometheus_install" {
default = false
description = "Whether to deploy the Prometheus Helm chart. See https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk."
type = bool
}
variable "prometheus_reapply" {
default = false
description = "Whether to force reapply of the Prometheus Helm chart when no changes are detected, e.g. with state modified externally."
type = bool
}
variable "prometheus_namespace" {
default = "metrics"
description = "Kubernetes namespace for deployed resources."
type = string
}
variable "prometheus_helm_version" {
default = "45.2.0"
description = "Version of the Helm chart to install. List available releases using `helm search repo [keyword] --versions`."
type = string
}
variable "prometheus_helm_values" {
default = {}
description = "Map of individual Helm chart values. See <a href=https://registry.terraform.io/providers/hashicorp/helm/latest/docs/data-sources/template>data.helm_template</a>."
type = map(string)
}
variable "prometheus_helm_values_files" {
default = []
description = "Paths to a local YAML files with Helm chart values (as with `helm install -f` which supports multiple). Generate with defaults using `helm show values [CHART] [flags]`."
type = list(string)
}
# DCGM exporter
variable "dcgm_exporter_install" {
default = false
description = "Whether to deploy the DCGM exporter Helm chart. See <a href=https://docs.nvidia.com/datacenter/cloud-native/gpu-telemetry/dcgm-exporter.html>DCGM-Exporter</a>. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk."
type = bool
}
variable "dcgm_exporter_reapply" {
default = false
description = "Whether to force reapply of the Helm chart when no changes are detected, e.g. with state modified externally."
type = bool
}
variable "dcgm_exporter_namespace" {
default = "metrics"
description = "Kubernetes namespace for deployed resources."
type = string
}
variable "dcgm_exporter_helm_version" {
default = "3.1.5"
description = "Version of the Helm chart to install. List available releases using `helm search repo [keyword] --versions`."
type = string
}
variable "dcgm_exporter_helm_values" {
default = {}
description = "Map of individual Helm chart values. See <a href=https://registry.terraform.io/providers/hashicorp/helm/latest/docs/data-sources/template>data.helm_template</a>."
type = map(string)
}
variable "dcgm_exporter_helm_values_files" {
default = []
description = "Paths to a local YAML files with Helm chart values (as with `helm install -f` which supports multiple). Generate with defaults using `helm show values [CHART] [flags]`."
type = list(string)
}
# MPI Operator
variable "mpi_operator_install" {
default = false
description = "Whether to deploy the MPI Operator. See <a href=https://github.com/kubeflow/mpi-operator>kubeflow/mpi-operator</a>. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk."
type = bool
}
variable "mpi_operator_namespace" {
default = "default"
description = "Kubernetes namespace for deployed resources."
type = string
}
variable "mpi_operator_deployment_url" {
default = null
description = "The URL path to the manifest. Leave unset for tags of <a href=https://github.com/kubeflow/mpi-operator>kubeflow/mpi-operator</a> using mpi_operator_version."
type = string
}
variable "mpi_operator_version" {
default = "0.4.0"
description = "Version to install. Ignored when an explicit value for mpi_operator_deployment_url is provided."
type = string
}
# Whereabouts
variable "whereabouts_install" {
default = false
description = "Whether to deploy the MPI Operator. See <a href=https://github.com/k8snetworkplumbingwg/whereabouts>k8snetworkplumbingwg/whereabouts</a>. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk."
type = bool
}
variable "whereabouts_namespace" {
default = "default"
description = "Kubernetes namespace for deployed resources."
type = string
}
variable "whereabouts_daemonset_url" {
default = null
description = "The URL path to the manifest. Leave unset for tags of <a href=https://github.com/k8snetworkplumbingwg/whereabouts>k8snetworkplumbingwg/whereabouts</a> using whereabouts_version."
type = string
}
variable "whereabouts_version" {
default = "master"
description = "Version to install. Ignored when an explicit value for whereabouts_daemonset_url is provided."
type = string
}
# Gatekeeper
variable "gatekeeper_install" {
default = false
description = "Whether to deploy the Gatekeeper Helm chart. See https://github.com/open-policy-agent/gatekeeper. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk."
type = bool
}
variable "gatekeeper_namespace" {
default = "kube-system"
description = "Kubernetes namespace for deployed resources."
type = string
}
variable "gatekeeper_helm_version" {
default = "3.11.0"
description = "Version of the Helm chart to install. List available releases using `helm search repo [keyword] --versions`."
type = string
}
variable "gatekeeper_helm_values" {
default = {}
description = "Map of individual Helm chart values. See <a href=https://registry.terraform.io/providers/hashicorp/helm/latest/docs/data-sources/template>data.helm_template</a>."
type = map(string)
}
variable "gatekeeper_helm_values_files" {
default = []
description = "Paths to a local YAML files with Helm chart values (as with `helm install -f` which supports multiple). Generate with defaults using `helm show values [CHART] [flags]`."
type = list(string)
}
# Service Account
variable "create_service_account" {
default = false
description = "Wether to create a service account or not."
type = bool
}
variable "service_accounts" {
default = {
kubeconfigsa = {
sa_name = "kubeconfigsa"
sa_namespace = "kube-system"
sa_cluster_role = "cluster-admin"
sa_cluster_role_binding = "kubeconfigsa-crb"
}
}
description = "Map of service accounts and associated parameters."
type = map(any)
}