Feat: add liveness probe
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -21,3 +21,9 @@ spec:
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
|
||||
@@ -21,3 +21,11 @@ spec:
|
||||
ports:
|
||||
- name: mongo
|
||||
containerPort: 27017
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- mongosh
|
||||
- --eval
|
||||
- version()
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
|
||||
Reference in New Issue
Block a user