Skip to content
Snippets Groups Projects
Commit 8a3150b6 authored by Xiang Dai's avatar Xiang Dai
Browse files

Add health check


Signed-off-by: default avatarXiang Dai <764524258@qq.com>
parent dc1854ee
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,14 @@ spec:
name: http-metrics
securityContext:
{{- toYaml .Values.promtail.securityContext | nindent 12 }}
{{- if .Values.promtail.livenessProbe }}
livenessProbe:
{{- toYaml .Values.promtail.livenessProbe | nindent 12 }}
{{- end }}
{{- if .Values.promtail.livenessProbe }}
readinessProbe:
{{- toYaml .Values.promtail.readinessProbe | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.promtail.resources | nindent 12 }}
nodeSelector:
......
......@@ -158,6 +158,30 @@ promtail:
mountPath: /var/lib/docker/containers
readOnly: true
readinessProbe:
failureThreshold: 5
exec:
command:
- /bin/sh
- -c
- /bin/ps -ef | grep promtail | grep -v grep
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
livenessProbe:
failureThreshold: 5
exec:
command:
- /bin/sh
- -c
- /bin/ps -ef | grep promtail | grep -v grep
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
# limits:
# cpu: 200m
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment