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.

  1. Step 1 of 6

    The pod checkout has shown an Init: status since it was created. Read the output of the container that is holding it up.

    Checked against what your commands print.

  2. Step 2, not started: Print the phase of checkout while its init containers are still failing.

  3. Step 3, not started: Give the init container what it is looking for: a ClusterIP Service named payments in the default namespace, port 443 to target port 8443. Then wait until checkout is ready.

  4. Step 4, not started: cache is declared under initContainers, yet checkout shows 2/2 ready. Show that cache is still running.

  5. Step 5, not started: report-classic.yaml and report-native.yaml run the same report with the same log shipper, declared two different ways. Run both Jobs and wait until one of them completes.

  6. Step 6, not started: Find the container that keeps the pod of the other Job from completing, and what state it is in.

Lab terminal

Cluster time 1 minute
kind cluster kx, Kubernetes 1.37.
Each step is checked as you work.
​
Tab completes. Up and Down recall.
Type help for more.
Terminal keys

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.