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: ports:
- containerPort: 25565 - containerPort: 25565
name: main name: main
readinessProbe:
exec:
command:
- mcstatus
- localhost
- ping
initialDelaySeconds: 5
periodSeconds: 5
livenessProbe:
exec:
command:
- mcstatus
- localhost
- ping
initialDelaySeconds: 5
periodSeconds: 5
volumeMounts: volumeMounts:
- name: mc-data - name: mc-data
mountPath: /data mountPath: /data