kubernetes / kubernetes/website
Issue with k8s.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
Open
lifecycle/rotten
needs-triage
- Dominant language
- HTML
- Stars
- 5.4k
- Forks
- 15.7k
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 204
Description
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-command
Readiness probes are configured similarly to liveness probes. The only difference is that you use the readinessProbe field instead of the livenessProbe field.
readinessProbe:
exec:
command:
- cat
- /tmp/healthy
initialDelaySeconds: 5
periodSeconds: 5
above will never work
you have to use
readinessProbe:
exec:
command:
- /bin/sh
- -c
- cat
- /tmp/healthy
initialDelaySeconds: 5
periodSeconds: 5
Contributor guide
Assessment
This issue has not been assessed yet.