Skip to content

Commit 9543ba0

Browse files
feat: add healthcheck in deployment k8s manifest (#7)
1 parent 5c9b7d4 commit 9543ba0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/templates/deployment.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,13 @@ spec:
4545
env:
4646
- name: EULA
4747
value: {{ .Values.eula | squote }}
48+
livenessProbe:
49+
exec:
50+
command: ["mc-monitor", "status"]
51+
periodSeconds: 1
52+
failureThreshold: 5 # 5 seconds before considering the pod as unhealthy
53+
startupProbe:
54+
exec:
55+
command: ["mc-monitor", "status"]
56+
periodSeconds: 1
57+
failureThreshold: 60 # 1 minute before considering the startup as failed

0 commit comments

Comments
 (0)