Give a slow starter its startup budget
- 12 min
- 5 steps
- Pods and workloads
Steps
0 of 5 done
A Deployment never becomes available because its liveness probe kills the app before it finishes starting. Read the evidence, measure the startup time, and fix it with a startup probe instead of a weaker liveness probe.
Step 1 of 5
The
ledgerpods have restarted since they were created. Find the cluster's record of why the kubelet restarted them.Checked against what your commands print.
Step 2, not started: Find out from the app itself how long it expects to take to start.
Step 3, not started: Show that the
ledgerService has endpoints for both pods, but that none of them is ready to receive traffic.Step 4, not started: Add a startup probe to the
appcontainer that allows at least 45 seconds, with some margin, for the app to start. Leave the liveness probe exactly as it is, and wait until both replicas are available.Step 5, not started: Confirm that both endpoints of the
ledgerService are ready.
Enter runs the command. Tab completes, and the arrow keys recall earlier commands. Control C stops a watch. On an empty line, or after Escape, Tab moves focus out of the terminal.