Unblock an init sequence and finish a Job
- 12 min
- 6 steps
- Pods and workloads
Steps
0 of 6 done
A pod waits on an init container for a dependency that does not exist. Find it, supply it, confirm the sidecar keeps running, then see why only one of two Jobs ever completes.
Step 1 of 6
The pod
checkouthas shown anInit:status since it was created. Read the output of the container that is holding it up.Checked against what your commands print.
Step 2, not started: Print the phase of
checkoutwhile its init containers are still failing.Step 3, not started: Give the init container what it is looking for: a ClusterIP Service named
paymentsin thedefaultnamespace, port 443 to target port 8443. Then wait untilcheckoutis ready.Step 4, not started:
cacheis declared underinitContainers, yetcheckoutshows2/2ready. Show thatcacheis still running.Step 5, not started:
report-classic.yamlandreport-native.yamlrun the same report with the same log shipper, declared two different ways. Run both Jobs and wait until one of them completes.Step 6, not started: Find the container that keeps the pod of the other Job from completing, and what state it is in.
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.