Repository navigation
Day 3: add probes question to Kubernetes quiz - #1891
sonawaneutkarsh wants to merge 1 commit into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4368beaa09
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "Set restartPolicy to OnFailure in the pod spec" | ||
| ], | ||
| "correctAnswer": 0, | ||
| "explanation": "Only the liveness probe can trigger a container restart: when it fails, the kubelet kills the container. For slow-starting apps the fix is a startupProbe (which gates the liveness probe until the app is up) or a generous initialDelaySeconds on the liveness probe. The readiness probe only controls whether the pod receives traffic - it never restarts anything.", |
There was a problem hiding this comment.
Correct the claim that only liveness probes restart containers
When a configured startupProbe reaches its failureThreshold, Kubernetes also kills the container and applies its restart policy; it does not merely gate the liveness probe. The unqualified claim here therefore teaches a false distinction in this exact slow-start scenario and may lead readers to add a startup probe whose own probe budget is still shorter than 60 seconds; clarify that readiness failures never restart containers, while both liveness and startup probe failures can.
Useful? React with 👍 / 👎.
Adds an intermediate multiple-choice question on liveness vs readiness probes (slow-starting app restart loop scenario) to the Kubernetes Fundamentals quiz. Updates totalPoints (115 -> 128) and difficultyLevels accordingly.
Part of the 8-Day Hacktoberfest Challenge (Day 3).