Feat: add liveness probe

This commit is contained in:
2025-04-18 23:49:39 +08:00
parent d39349724a
commit 3df7a601b9
3 changed files with 20 additions and 0 deletions

View File

@@ -28,3 +28,9 @@ spec:
value: '0.0.0.0'
- name: MONGO_CONNECTION_STRING
value: 'mongodb://cnd2025-mongo.cnd2025.svc.cluster.local:27017/todo'
livenessProbe:
httpGet:
path: /ping
port: 8888
initialDelaySeconds: 5
periodSeconds: 5