Skip to content

Commit b0a50b6

Browse files
authored
Add livenessProbe to handle automatic pod restarts
1 parent a922d7b commit b0a50b6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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)