kubernetes / kubernetes/website

Issue with k8s.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/

Open
#54,854 5 comments 0 reactions 1 assignee Claimed by @Creativeklvn View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.