-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Labels
Description
The readiness probe defined in here:
| - exec |
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]