Skip to content

Commit 1f52cb8

Browse files
authored
Merge pull request #4 from bascht/patch-1
Add livenessProbe to handle automatic pod restarts
2 parents a922d7b + b0a50b6 commit 1f52cb8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

charts/codimd/templates/deployment.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,16 @@ spec:
163163
successThreshold: 3
164164
timeoutSeconds: 2
165165
periodSeconds: 5
166+
livenessProbe:
167+
failureThreshold: 3
168+
httpGet:
169+
path: /status
170+
port: 3000
171+
scheme: HTTP
172+
initialDelaySeconds: 3
173+
periodSeconds: 5
174+
successThreshold: 1
175+
timeoutSeconds: 2
166176
restartPolicy: Always
167177
{{ if .Values.codimd.imageStorePersistentVolume.enabled }}
168178
volumes:

0 commit comments

Comments
 (0)