The readiness probe defined in here:
It uses exec to execute the probe script, which will always return 0.
➤ kubectl get pods scylla-2
NAME READY STATUS RESTARTS AGE
scylla-2 1/1 Running 0 15m
➤ kubectl exec scylla-2 bash /opt/ready-probe.sh
command terminated with exit code 1
➤ kubectl exec scylla-2 -- bash -c exec /opt/ready-probe.sh
(returned 0 here)
➤ kubectl get pods scylla-2 -ojsonpath='{.spec.containers[].readinessProbe}'
map[exec:map[command:[/bin/bash -c exec /opt/ready-probe.sh]] failureThreshold:3 initialDelaySeconds:15 periodSeconds:10 successThreshold:1 timeoutSeconds:5]
The readiness probe defined in here:
scylla-code-samples/kubernetes-scylla/scylla-statefulset.yaml
Line 58 in 0464f54
It uses
execto execute the probe script, which will always return 0.