-
Notifications
You must be signed in to change notification settings - Fork 8
/
variables.tf
253 lines (211 loc) · 6.92 KB
/
variables.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
variable "api_url" {
type = string
description = "URL of alternative CAST AI API to be used during development or testing"
default = "https://api.cast.ai"
}
variable "castai_api_token" {
type = string
description = "Optional CAST AI API token created in console.cast.ai API Access keys section. Used only when `wait_for_cluster_ready` is set to true"
sensitive = true
default = ""
}
variable "grpc_url" {
type = string
description = "gRPC endpoint used by pod-pinner"
default = "grpc.cast.ai:443"
}
variable "api_grpc_addr" {
type = string
description = "CAST AI GRPC API address"
default = "api-grpc.cast.ai:443"
}
variable "kvisor_controller_extra_args" {
type = map(string)
description = "Extra arguments for the kvisor controller. Optionally enable kvisor to lint Kubernetes YAML manifests, scan workload images and check if workloads pass CIS Kubernetes Benchmarks as well as NSA, WASP and PCI recommendations."
default = {
"kube-linter-enabled" = "true"
"image-scan-enabled" = "true"
"kube-bench-enabled" = "true"
}
}
variable "project_id" {
type = string
description = "The project id from GCP"
}
variable "gke_cluster_name" {
type = string
description = "Name of the cluster to be connected to CAST AI."
}
variable "autoscaler_policies_json" {
type = string
description = "Optional json object to override CAST AI cluster autoscaler policies. Deprecated, use `autoscaler_settings` instead."
default = null
}
variable "autoscaler_settings" {
type = any
description = "Optional Autoscaler policy definitions to override current autoscaler settings"
default = null
}
variable "delete_nodes_on_disconnect" {
type = bool
description = "Optionally delete Cast AI created nodes when the cluster is destroyed"
default = false
}
variable "gke_cluster_location" {
type = string
description = "Location of the cluster to be connected to CAST AI. Can be region or zone for zonal clusters"
}
variable "gke_credentials" {
type = string
description = "Optional GCP Service account credentials.json"
}
variable "castai_components_labels" {
type = map(any)
description = "Optional additional Kubernetes labels for CAST AI pods"
default = {}
}
variable "node_configurations" {
type = any
description = "Map of GKE node configurations to create"
default = {}
}
variable "default_node_configuration" {
type = string
description = "ID of the default node configuration"
default = ""
}
variable "default_node_configuration_name" {
type = string
description = "Name of the default node configuration"
default = ""
}
variable "node_templates" {
type = any
description = "Map of node templates to create"
default = {}
}
variable "workload_scaling_policies" {
type = any
description = "Map of workload scaling policies to create"
default = {}
}
variable "install_security_agent" {
type = bool
default = false
description = "Optional flag for installation of security agent (https://docs.cast.ai/product-overview/console/security-insights/)"
}
variable "agent_version" {
description = "Version of castai-agent helm chart. Default latest"
type = string
default = null
}
variable "cluster_controller_version" {
description = "Version of castai-cluster-controller helm chart. Default latest"
type = string
default = null
}
variable "evictor_version" {
description = "Version of castai-evictor chart. Default latest"
type = string
default = null
}
variable "evictor_ext_version" {
description = "Version of castai-evictor-ext chart. Default latest"
type = string
default = null
}
variable "pod_pinner_version" {
description = "Version of pod-pinner helm chart. Default latest"
type = string
default = null
}
variable "spot_handler_version" {
description = "Version of castai-spot-handler helm chart. Default latest"
type = string
default = null
}
variable "kvisor_version" {
description = "Version of kvisor chart. If not provided, latest version will be used."
type = string
default = null
}
variable "agent_values" {
description = "List of YAML formatted string values for agent helm chart"
type = list(string)
default = []
}
variable "spot_handler_values" {
description = "List of YAML formatted string values for spot-handler helm chart"
type = list(string)
default = []
}
variable "cluster_controller_values" {
description = "List of YAML formatted string values for cluster-controller helm chart"
type = list(string)
default = []
}
variable "evictor_values" {
description = "List of YAML formatted string values for evictor helm chart"
type = list(string)
default = []
}
variable "evictor_ext_values" {
description = "List of YAML formatted string with evictor-ext values"
type = list(string)
default = []
}
variable "pod_pinner_values" {
description = "List of YAML formatted string values for agent helm chart"
type = list(string)
default = []
}
variable "kvisor_values" {
description = "List of YAML formatted string values for kvisor helm chart"
type = list(string)
default = []
}
variable "self_managed" {
type = bool
default = false
description = "Whether CAST AI components' upgrades are managed by a customer; by default upgrades are managed CAST AI central system."
}
variable "wait_for_cluster_ready" {
type = bool
description = "Wait for cluster to be ready before finishing the module execution, this option requires `castai_api_token` to be set"
default = false
}
variable "install_workload_autoscaler" {
type = bool
default = false
description = "Optional flag for installation of workload autoscaler (https://docs.cast.ai/docs/workload-autoscaling-configuration)"
}
variable "workload_autoscaler_version" {
description = "Version of castai-workload-autoscaler helm chart. Default latest"
type = string
default = null
}
variable "workload_autoscaler_values" {
description = "List of YAML formatted string with cluster-workload-autoscaler values"
type = list(string)
default = []
}
variable "install_cloud_proxy" {
description = "Optional flag for installation of castai-cloud-proxy"
type = bool
default = false
}
variable "cloud_proxy_version" {
description = "Version of the castai-cloud-proxy Helm chart. Defaults to latest."
type = string
default = null
}
variable "cloud_proxy_values" {
description = "List of YAML formatted strings with castai-cloud-proxy values"
type = list(string)
default = []
}
variable "cloud_proxy_grpc_url_override" {
description = "Override for the castai-cloud-proxy gRPC URL"
type = string
default = null
}