Question 950
At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: Container invoice-api in ledger restarts after liveness probe failures during slow initialization. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
Liveness failure triggers restarts, while startup and readiness probes serve different lifecycle purposes. This explains the stated condition. The corresponding action is: Run kubectl -n ledger describe pod invoice-api plus kubectl -n ledger logs invoice-api --previous to distinguish startup and runtime faults. The direct acceptance evidence is: Verify restart counts stabilize after an appropriate startup/liveness configuration change, without masking genuine deadlocks.
Incorrect Answers
This principle describes a separate cause: CrashLoopBackOff is a restart backoff symptom, not a root cause; the preceding container logs often preserve the terminating process error. The reported condition is governed by: Liveness failure triggers restarts, while startup and readiness probes serve different lifecycle purposes. The two mechanisms should not be conflated.
Finalizers protect cleanup work; forcibly removing them without identifying failing controllers can orphan resources and leak infrastructure. That explanation applies to a different technical failure. Here the controlling principle is: Liveness failure triggers restarts, while startup and readiness probes serve different lifecycle purposes.
This principle describes a separate cause: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The reported condition is governed by: Liveness failure triggers restarts, while startup and readiness probes serve different lifecycle purposes. The two mechanisms should not be conflated.