62
62
value : " {{ .Values.minio.auth.rootPassword }}"
63
63
{{- end }}
64
64
args : ["server",
65
- " --backend-store-uri" , "{{- template "services.postgres.uri" .}}",
66
- " --default-artifact-root" , "{{- template "services.minio.uri" . }}",
67
- " --host" , "0.0.0.0"]
65
+ " --backend-store-uri" , "{{- template "services.postgres.uri" . }}",
66
+ " --artifacts-destination" , "s3://{{ .Values.oauth2Proxy.clientID }}",
67
+ " --serve-artifacts" ,
68
+ " --host" , "0.0.0.0",
69
+ " --port" , "5000"]
68
70
ports :
69
71
- name : mlflow
70
72
containerPort : 5000
79
81
# httpGet:
80
82
# path: /
81
83
# port: mlflow
82
- resources :
83
- {{- toYaml .Values.resources | nindent 12 }}
84
+ {{- if .Values.oauth2Proxy.enabled }}
85
+ - name : sidecar
86
+ image : " {{- .Values.oauth2Proxy.repository}}:{{- .Values.oauth2Proxy.tag}}"
87
+
88
+ volumeMounts :
89
+ - name : oauth2-config
90
+ mountPath : " /etc/oauth2-proxy"
91
+ readOnly : true
92
+
93
+ ports :
94
+ - name : https
95
+ containerPort : 8443
96
+ protocol : TCP
97
+
98
+ env :
99
+ - name : OAUTH2_PROXY_CLIENT_SECRET
100
+ valueFrom :
101
+ secretKeyRef :
102
+ name : {{ .Values.oauth2Proxy.secret }}
103
+ key : client_secret
104
+ - name : OAUTH2_PROXY_COOKIE_SECRET
105
+ valueFrom :
106
+ secretKeyRef :
107
+ name : {{ .Values.oauth2Proxy.secret }}
108
+ key : cookie_secret
109
+
110
+ args : ["--http-address", "0.0.0.0:8443",
111
+ " --upstream" , "http://localhost:5000",
112
+ " --config" , "/etc/oauth2-proxy/config.cfg"
113
+ ]
114
+
84
115
{{- with .Values.nodeSelector }}
85
116
nodeSelector :
86
117
{{- toYaml . | nindent 8 }}
93
124
tolerations :
94
125
{{- toYaml . | nindent 8 }}
95
126
{{- end }}
127
+ volumes :
128
+ - name : oauth2-config
129
+ configMap :
130
+ name : {{ include "mlflow.fullname" . }}-oauth2-config
131
+ {{- end }}
0 commit comments