add readinessProbe & livenessProbe to k8s-examples/vanilla-deployment.yml (#370)

This commit is contained in:
Michael Vorburger ⛑️ 2019-08-02 20:21:47 +02:00 committed by Geoff Bourne
parent 53800e460f
commit 19e39b84ec

View File

@ -33,6 +33,22 @@ spec:
ports:
- containerPort: 25565
name: main
readinessProbe:
exec:
command:
- mcstatus
- localhost
- ping
initialDelaySeconds: 5
periodSeconds: 5
livenessProbe:
exec:
command:
- mcstatus
- localhost
- ping
initialDelaySeconds: 5
periodSeconds: 5
volumeMounts:
- name: mc-data
mountPath: /data