enabled metrics endpoint and liveness probe by default

Signed-off-by: chgl <chgl@users.noreply.github.com>
This commit is contained in:
chgl 2021-04-18 22:18:07 +02:00
parent 6f27c8c070
commit 86c8d2fac3

View file

@ -76,23 +76,15 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.controller.resources | nindent 12 }}
{{- if .Values.controller.metricsConfig.enabled }}
ports:
- name: metrics
containerPort: {{- .Values.controller.metricsConfig.port }}
containerPort: {{ .Values.controller.metricsConfig.port }}
livenessProbe:
httpGet:
port: metrics
path: {{- .Values.controller.metricsConfig.path }}
path: {{ .Values.controller.metricsConfig.path }}
initialDelaySeconds: 30
periodSeconds: 30
readinessProbe:
httpGet:
port: metrics
path: {{- .Values.controller.metricsConfig.path }}
initialDelaySeconds: 30
periodSeconds: 30
{{- end }}
{{- with .Values.images.pullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}