A modern cluster runs an app that needs several minutes to warm caches. Engineers only set a large initialDelaySeconds on liveness. What is the preferred modern pattern?
Select an answer to reveal the explanation.
Short Explanation
initialDelaySeconds is a fixed nap timer; startupProbe is a real ‘tell me when you’re ready’ handshake. For long warmups on modern clusters, prefer startupProbe so liveness doesn’t guess a single delay. Once startup passes, normal probes take over.
Full Explanation
startupProbe is the recommended pattern for containers with extended startup. It blocks liveness and readiness until success, accommodating variable init time better than a one-shot initialDelaySeconds alone. Relying solely on a large initialDelaySeconds can still kill slow starts that exceed the delay or delay detection after restart. CronJobs and intentional crash loops are not substitutes for probe design.