File tree Expand file tree Collapse file tree
helm/jupyterhub-cost-monitoring Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 {{- with .Values.extraEnv }}
3535 {{- tpl (. | toYaml) $ | nindent 12 }}
3636 {{- end }}
37+ - name : PROMETHEUS_USERNAME
38+ valueFrom :
39+ secretKeyRef :
40+ name : {{ include "jupyterhub-cost-monitoring.webserver.fullname" . }}-auth
41+ key : username
42+ - name : PROMETHEUS_PASSWORD
43+ valueFrom :
44+ secretKeyRef :
45+ name : {{ include "jupyterhub-cost-monitoring.webserver.fullname" . }}-auth
46+ key : password
3747 resources :
3848 {{- .Values.resources | toYaml | nindent 12 }}
3949 securityContext :
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : Secret
3+ metadata :
4+ name : {{ include "jupyterhub-cost-monitoring.fullname" . }}-auth
5+ labels : {{- include "jupyterhub-cost-monitoring.labels" . | nindent 4 }}
6+ type : Opaque
7+ data :
8+ username : {{ .Values.prometheusAuth.username | b64enc }}
9+ password : {{ .Values.prometheusAuth.password | b64enc }}
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ required:
2626- service
2727- ingress
2828- networkPolicy
29+ - secrets
2930properties :
3031 # Flag to conditionally install the chart
3132 # ---------------------------------------------------------------------------
@@ -161,3 +162,18 @@ properties:
161162 properties :
162163 localGrafanaInstances :
163164 type : boolean
165+
166+ # Secrets resource
167+ # -----------------------------------------------------------------------------
168+ #
169+ prometheusAuth :
170+ type : object
171+ additionalProperties : false
172+ properties :
173+ enabled :
174+ type : boolean
175+ username :
176+ type : string
177+ password :
178+ type : string
179+ required : [enabled]
Original file line number Diff line number Diff line change @@ -66,3 +66,11 @@ networkPolicy:
6666 ingress : []
6767 ingressAllowRules :
6868 localGrafanaInstances : true
69+
70+ # Secrets resource
71+ # -----------------------------------------------------------------------------
72+ #
73+ prometheusAuth :
74+ enabled : false
75+ username : " "
76+ password : " "
You can’t perform that action at this time.
0 commit comments