-
Notifications
You must be signed in to change notification settings - Fork 101
/
variables.tf
298 lines (241 loc) · 6.23 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
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
## General variables
variable "hostname" {
description = "Hostname of the deployed cluster. Ex.: my-mlops.com"
}
variable "protocol" {
default = "http"
description = "Preferred connection protocol. If using https, a valid ACM certificate must be provided under tls_certificate_arn. See documentation"
}
variable "install_locally" {
default = false
description = "Whether to install on a local minikube"
}
## MLFlow
variable "mlflow_namespace" {
default = "mlflow"
}
variable "database_name" {
default = "mlflow"
}
variable "db_password" {
description = "Database password"
}
variable "db_username" {
default = "postgres"
}
variable "mlflow_artifact_root" {
default = "s3://mlops-model-artifact"
}
variable "mlflow_docker_private_repo" {
description = "Whether the MLFlow's image comes from a private repository or not. If true, mlflow_docker_registry_server and mlflow_docker_auth_key will be required"
type = bool
default = false
}
variable "mlflow_docker_registry_server" {
description = "Docker Registry Server where the MLFlow image should be found"
type = string
default = ""
}
variable "mlflow_docker_auth_key" {
description = "Base64 encoded auth key for the registry server"
type = string
default = ""
}
variable "mlflow_service_type" {
description = "Whether to expose the service publicly or internally"
type = string
default = "LoadBalancer"
}
## Prefect Server
variable "prefect_namespace" {
default = "prefect"
}
variable "prefect_service_type" {
description = "Whether to expose the service publicly or internally"
type = string
default = "LoadBalancer"
}
variable "prefect_agent_labels" {
description = "Defines what scheduling labels (not K8s labels) should be associated with the agent"
default = ["dev"]
}
variable "prefect_service_account_name" {
description = "Prefect service account name"
default = "prefect-server-serviceaccount"
}
variable "prefect_create_tenant_enabled" {
description = "determines if the Prefect tenant is created automatically"
default = true
}
## Jupyter Hub
variable "jupyter_dummy_password" {
default = ""
}
variable "install_jupyterhub" {
default = true
}
variable "jupyterhub_namespace" {
default = "jhub"
}
variable "jhub_proxy_https_enabled" {
default = false
}
variable "jhub_proxy_https_hosts" {
default = [""]
}
variable "jhub_proxy_secret_token" {
default = ""
}
variable "jhub_proxy_https_letsencrypt_contact_email" {
default = ""
}
variable "jhub_proxy_service_type" {
description = "Whether to expose the service publicly or internally"
type = string
default = "LoadBalancer"
}
variable "oauth_github_enable" {
description = "Defines whether the authentication will be handled by github oauth"
default = false
}
variable "oauth_github_client_id" {
description = "github client id used on GitHubOAuthenticator"
default = ""
}
variable "oauth_github_client_secret" {
description = "github secret used to authenticate with github"
default = ""
}
variable "oauth_github_admin_users" {
description = "Github user names to allow as administrator"
default = []
}
variable "oauth_github_callback_url" {
description = "The URL that people are redirected to after they authorize your GitHub App to act on their behalf"
default = ""
}
variable "oauth_github_allowed_organizations" {
description = "List of Github organization to restrict access to the members"
default = [""]
}
locals {
jhub_auth_config = {
dummy = {
password = var.jupyter_dummy_password
}
github = {
clientId = var.oauth_github_client_id
clientSecret = var.oauth_github_client_secret
callbackUrl = var.oauth_github_callback_url
orgWhiteList = var.oauth_github_allowed_organizations
}
scope = ["read:user"]
admin = {
users = var.oauth_github_admin_users
}
}
}
## Dask
variable "dask_namespace" {
default = "dask"
}
## Feast
variable "install_feast" {
default = false
}
variable "feast_namespace" {
default = "feast"
}
variable "feast_postgresql_password" {
default = "my-feast-password"
}
variable "feast_spark_operator_cluster_role_name" {
default = "feast-spark-operator"
}
## Seldon
variable "install_seldon" {
default = true
}
variable "seldon_namespace" {
default = "seldon"
}
## Ambassador
variable "ambassador_namespace" {
default = "ambassador"
}
variable "ambassador_enabled" {
default = true
}
variable "aws" {
description = "If the deployment is being made in an AWS Cluster"
}
variable "tls_certificate_arn" {
description = "TLS Certificate ARN"
default = ""
}
## ORY (authentication module)
variable "enable_ory_authentication" {
default = true
}
variable "ory_namespace" {
default = "ory"
}
variable "ory_kratos_db_password"{
description = "PostgreSQL Database Password"
}
variable "ory_kratos_cookie_secret" {
description = "Session Cookie Generation secret"
sensitive = true
}
variable "oauth2_providers" {
// Configure multiple Oauth2 providers.
// example:
// [{
// provider = github
// client_id = change_me
// client_secret = change_me
// tenant = null
// }]
// If you're using GitHub, Google or Facebook, tenant won't be needed, so please set
// it as null or an empty string. It is required for AzureAd
type = list(object({
provider = string
client_id = string
client_secret = string
tenant = string
}))
description = "OAuth2 Providers credentials"
}
variable "smtp_connection_uri" {
description = "SMTP Connection for Ory"
type = string
default = "smtp://"
}
variable "smtp_from_address" {
description = "Email address for outgoing mails from Ory"
type = string
default = ""
}
variable "enable_password_recovery" {
description = "Bool to set to enable password recovery using emails"
type = bool
default = false
}
variable "enable_verification" {
description = "Bool to set to enable account registration confirmation using emails"
type = bool
default = false
}
## Other K8S tools
variable "install_metrics_server" {
default = true
}
variable "enable_registration_page" {
description = "Bool to set if registration page will or not be visible to users"
type = bool
default = true
}
variable "access_rules_path" {
type = string
default = null
}