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 }} {{- end }}
resources: resources:
{{- toYaml .Values.controller.resources | nindent 12 }} {{- toYaml .Values.controller.resources | nindent 12 }}
{{- if .Values.controller.metricsConfig.enabled }}
ports: ports:
- name: metrics - name: metrics
containerPort: {{- .Values.controller.metricsConfig.port }} containerPort: {{ .Values.controller.metricsConfig.port }}
livenessProbe: livenessProbe:
httpGet: httpGet:
port: metrics port: metrics
path: {{- .Values.controller.metricsConfig.path }} path: {{ .Values.controller.metricsConfig.path }}
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 30 periodSeconds: 30
readinessProbe:
httpGet:
port: metrics
path: {{- .Values.controller.metricsConfig.path }}
initialDelaySeconds: 30
periodSeconds: 30
{{- end }}
{{- with .Values.images.pullSecrets }} {{- with .Values.images.pullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}