From 19e39b84ece2df33e948baf4fadfc8f151d6f96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vorburger=20=E2=9B=91=EF=B8=8F?= Date: Fri, 2 Aug 2019 20:21:47 +0200 Subject: [PATCH] add readinessProbe & livenessProbe to k8s-examples/vanilla-deployment.yml (#370) --- k8s-examples/vanilla-deployment.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/k8s-examples/vanilla-deployment.yml b/k8s-examples/vanilla-deployment.yml index f49809ad..65111465 100644 --- a/k8s-examples/vanilla-deployment.yml +++ b/k8s-examples/vanilla-deployment.yml @@ -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