Kubernetes Simulator

intermediate · ~10 min

Ready when it's ready

Checkout is timing out. The orders pods are Running, nothing is crashing — and yet the orders Service sends traffic nowhere.

A readiness probe is how a pod tells Kubernetes it can take traffic. Until it passes, the pod is kept out of every Service's endpoints. orders-api answers two health paths: /healthz (the process is alive) and /ready (it can reach its database).

Objectives

  • Work out why the Service has no endpoints
  • The orders Service routes to 2 ready pods
  • Bonus: Also give the pods a liveness probe on /healthz

Best on a computer with a keyboard. It works on a phone, with shortcuts under the terminal.