Sign inSign up free

185. Running, but Never Ready

medium 20 XP ~8 minHands-on lab

courier-api in search was deployed with a readiness probe. Both Pods are Running, but READY shows 0/1, the Service courier-api has no endpoints, and clients get connection refused.

The app reports readiness at GET /readyz on its HTTP port 80 (plain HTTP, no TLS).

Task

  • Both Pods of courier-api become Ready and are the endpoints of the Service courier-api.
  • Keep a readiness probe that checks /readyz on port 80 over HTTP.
  • Don't change the Service.

About this machine

Ubuntu 24.04 with a private practice cluster: a real Kubernetes API server, scheduler and controllers, and three nodes (controlplane, node01, node02). Containers run in a lightweight runtime: their commands, kubectl logs, exec and run -it work, and Pods reach Services by name with wget or curl. Images never download, and port-forward isn't available. k is an alias for kubectl, with completion. The grader checks the cluster's final state, not the commands you typed.

Part of Prepare for the CKA. Next step: The Ingress Returns 404 and 503

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh machine with its own Kubernetes cluster starts in about half a minute, with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.