File tree Expand file tree Collapse file tree 9 files changed +72
-19
lines changed
examples/eks-https-loadbalancer
templates/100-kubeflow-notebooks Expand file tree Collapse file tree 9 files changed +72
-19
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,11 @@ Some considerations:
76
76
77
77
### Set a new password
78
78
79
- The ` user_password ` variable allows you to set a non-default password. This is
80
- essential for deploying Kubeflow.
79
+ It's critical to not use the default password for internet-facing deployments.
80
+
81
+ See the See [ examples/k3s-existing-istio] ( examples/k3s-existing-istio ) for deployment with a non-default dex password (passed in via terraform CLI)
82
+
83
+ Note that dex will only pick up new config at start -- you may have to restart the dex pod manually for a password change to take effect.
81
84
82
85
### Make Kubeflow available securely on a network using HTTPS
83
86
Original file line number Diff line number Diff line change @@ -52,6 +52,20 @@ gateway:
52
52
limits:
53
53
cpu: 2000m
54
54
memory: 1024Mi
55
+ dex:
56
+ spec:
57
+ project: default
58
+ source:
59
+ kustomize:
60
+ patches:
61
+ - target:
62
+ kind: Secret
63
+ name: dex-passwords
64
+ patch: |-
65
+ - op: replace
66
+ path: /stringData/DEX_USER_PASSWORD
67
+ value: ${ bcrypt (var. password )}
68
+
55
69
EOF
56
70
]
57
71
depends_on = [
Original file line number Diff line number Diff line change
1
+ variable "password" {
2
+ sensitive = true
3
+ description = " password for [email protected] "
4
+ }
1
5
2
6
variable "host" {
3
7
}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ {{ if .Values.exampleProfile.enabled }}
2
+ apiVersion : argoproj.io/v1alpha1
3
+ kind : Application
4
+ metadata :
5
+ name : 102-example-profile
6
+ annotations :
7
+ argocd.argoproj.io/sync-wave : " 102"
8
+ finalizers :
9
+ - resources-finalizer.argocd.argoproj.io
10
+ spec :
11
+ {{ .Values.exampleProfile.spec | toYaml | indent 2 }}
12
+ {{- end -}}
Original file line number Diff line number Diff line change @@ -353,3 +353,20 @@ volumesWebApp:
353
353
prune : false
354
354
syncOptions :
355
355
- ServerSideApply=true
356
+
357
+ exampleProfile :
358
+ enabled : true
359
+ spec :
360
+ project : default
361
+ source :
362
+ path : common/user-namespace/base
363
+ repoURL : https://github.com/kubeflow/manifests
364
+ targetRevision : 776d4f4
365
+ destination :
366
+ namespace : argocd
367
+ name : in-cluster
368
+ syncPolicy :
369
+ automated :
370
+ prune : false
371
+ syncOptions :
372
+ - ServerSideApply=true
Original file line number Diff line number Diff line change 30
30
31
31
locals {
32
32
user_vals = " \n ${ var . kubeflow_values [0 ]} "
33
- default_values = [
33
+ top_level_values = [
34
34
<< EOF
35
35
treebeardKubeflow:
36
- repoURL: "ghcr.io/treebeardtech"
37
- targetRevision: 0.1-2024-03-08-T10-50-10
38
- chart: 'kubeflow-argo-apps'
36
+ repoURL: ${ var . treebeard_kubeflow_dependency [ " repoURL " ] }
37
+ targetRevision: ${ var . treebeard_kubeflow_dependency [ " targetRevision " ] }
38
+ chart: ${ var . treebeard_kubeflow_dependency [ " chart " ] }
39
39
values: ${ indent (4 , local. user_vals )}
40
40
EOF
41
41
]
@@ -46,7 +46,7 @@ resource "helm_release" "kubeflow_apps" {
46
46
namespace = " argocd"
47
47
chart = " ${ path . module } /helm/kubeflow-bootstrap"
48
48
wait_for_jobs = true
49
- values = concat (local. default_values )
49
+ values = concat (local. top_level_values )
50
50
51
51
dynamic "set" {
52
52
iterator = item
@@ -71,4 +71,8 @@ resource "helm_release" "kubeflow_apps" {
71
71
null_resource. start ,
72
72
helm_release . argo_cd
73
73
]
74
- }
74
+ }
75
+
76
+ output "top_level_values" {
77
+ value = local. top_level_values
78
+ }
Original file line number Diff line number Diff line change
1
+ variable "treebeard_kubeflow_dependency" {
2
+ description = " Configuration for Treebeard Kubeflow helm"
3
+ type = map (string )
4
+ default = {
5
+ repoURL = " ghcr.io/treebeardtech"
6
+ targetRevision = " 0.1-2024-03-08-T12-25-15"
7
+ chart = " kubeflow-argo-apps"
8
+ }
9
+ }
10
+
1
11
variable "enable_argocd" {
2
12
type = bool
3
13
default = true
You can’t perform that action at this time.
0 commit comments