From 2a35f7e62ff000ecd791687d95273c9952d499d1 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 9 Jul 2022 17:27:07 -0500 Subject: [PATCH] docs: Updated readiness and liveness probes in k8s example --- examples/k8s/vanilla-deployment.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/examples/k8s/vanilla-deployment.yml b/examples/k8s/vanilla-deployment.yml index 65111465ff2..218495e8626 100644 --- a/examples/k8s/vanilla-deployment.yml +++ b/examples/k8s/vanilla-deployment.yml @@ -35,20 +35,17 @@ spec: name: main readinessProbe: exec: - command: - - mcstatus - - localhost - - ping - initialDelaySeconds: 5 + command: [ "/usr/local/bin/mc-monitor", "status", "--host", "localhost" ] + # Give it i + p * f seconds to be ready, so 120 seconds + initialDelaySeconds: 20 periodSeconds: 5 + failureThreshold: 20 + # Monitor ongoing liveness livenessProbe: exec: - command: - - mcstatus - - localhost - - ping - initialDelaySeconds: 5 - periodSeconds: 5 + command: ["/usr/local/bin/mc-monitor", "status", "--host", "localhost"] + initialDelaySeconds: 120 + periodSeconds: 60 volumeMounts: - name: mc-data mountPath: /data