Triage the shop namespace

  • 14 min
  • 6 steps
  • Operate and ship

Steps

0 of 6 done

Two reports arrive at once: the cart never came up after a deploy, and storefront refuses connections from inside the cluster. Work each from symptom to cause with the fixed order of commands, change one thing at a time, and verify each fix.

  1. Step 1 of 6

    Get one view of every pod in the shop namespace that also shows each pod's IP and the node it runs on.

    Checked against what your commands print.

  2. Step 2, not started: The cart pods have no node. Find the message the scheduler left explaining why it could not place them.

  3. Step 3, not started: Each node has 4 CPUs, and cart asks for 16. Lower cart's CPU request to 100m without editing YAML by hand, and wait for both replicas to become available.

  4. Step 4, not started: Requests from toolbox to http://storefront are refused. Name resolution works. List the endpoints the storefront Service routes to, and note the port.

  5. Step 5, not started: Bypass the Service: from toolbox, request one storefront pod directly on the port its container declares.

  6. Step 6, not started: The pods answer on their container port and the Service sends traffic somewhere else. Fix the Service so http://storefront works from toolbox.

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.