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