@@ -114,13 +114,13 @@ spec:
114114 args :
115115 - " --config.file=/opt/drycc/prometheus/conf/{{ include " prometheus.server.configmapKey" . }}"
116116 - " --storage.tsdb.path={{ .Values.server.persistence.mountPath }}"
117- - " --storage.tsdb.retention.time={{ .Values.server.retention }}"
118117 - " --storage.tsdb.retention.size={{ .Values.server.retentionSize }}"
119118 - " --log.level={{ .Values.server.logLevel }}"
120119 - " --log.format={{ .Values.server.logFormat }}"
121120 - " --web.listen-address=:{{ .Values.server.containerPorts.http }}"
122121 - " --web.console.libraries=/opt/drycc/prometheus/conf/console_libraries"
123122 - " --web.console.templates=/opt/drycc/prometheus/conf/consoles"
123+ - " --web.config.file=/opt/drycc/prometheus/conf/web-config.yaml"
124124 {{- if .Values.server.enableAdminAPI}}
125125 - " --web.enable-admin-api"
126126 {{- end }}
@@ -141,6 +141,11 @@ spec:
141141 {{- if .Values.server.extraEnvVars }}
142142 {{- include "common.tplvalues.render" (dict "value" .Values.server.extraEnvVars "context" $) | nindent 12 }}
143143 {{- end }}
144+ - name : PASSWORD
145+ valueFrom :
146+ secretKeyRef :
147+ name : {{ template "prometheus.server.fullname" . }}
148+ key : PASSWORD
144149 envFrom :
145150 {{- if .Values.server.extraEnvVarsCM }}
146151 - configMapRef :
@@ -164,6 +169,9 @@ spec:
164169 httpGet :
165170 path : /-/healthy
166171 port : http
172+ httpHeaders :
173+ - name : Authorization
174+ value : Basic {{ printf "%s:%s" .Values.server.username .Values.server.password | b64enc }}
167175 {{- end }}
168176 {{- if .Values.server.customReadinessProbe }}
169177 readinessProbe : {{- include "common.tplvalues.render" (dict "value" .Values.server.customReadinessProbe "context" $) | nindent 12 }}
@@ -172,13 +180,20 @@ spec:
172180 httpGet :
173181 path : /-/ready
174182 port : http
183+ httpHeaders :
184+ - name : Authorization
185+ value : Basic {{ printf "%s:%s" .Values.server.username .Values.server.password | b64enc }}
175186 {{- end }}
176187 {{- if .Values.server.customStartupProbe }}
177188 startupProbe : {{- include "common.tplvalues.render" (dict "value" .Values.server.customStartupProbe "context" $) | nindent 12 }}
178189 {{- else if .Values.server.startupProbe.enabled }}
179190 startupProbe : {{- include "common.tplvalues.render" (dict "value" (omit .Values.server.startupProbe "enabled") "context" $) | nindent 12 }}
180- tcpSocket :
191+ httpGet :
192+ path : /-/ready
181193 port : http
194+ httpHeaders :
195+ - name : Authorization
196+ value : Basic {{ printf "%s:%s" .Values.server.username .Values.server.password | b64enc }}
182197 {{- end }}
183198 {{- end }}
184199 {{- if .Values.server.lifecycleHooks }}
0 commit comments