appsops.observer
← All labs

Kubernetes application health / Intermediate / 25–40 min

The running application that receives no traffic

A running web container stays unready and receives no Service traffic. Investigate its readiness probe without disabling health checks.

LAB IDapps-03-readiness-probeTRACK / appsops.observer
Engineer investigating application systems at a workstation

The scenario

A web Deployment is running, but its Pod is not Ready and the Service has no ready endpoint. Find the readiness failure and correct it while preserving the application, Service and liveness check.

Mission objectives

  • Inspect Pod conditions, probe events and the Service's ready endpoints.
  • Correct the readiness probe without removing health checks or changing the application.
  • Verify rollout, the ready endpoint and a request through the Service.

Lab README

The running application that receives no traffic

The web container is running, but its Pod is not Ready and the Service has no ready backend. Find the cause without removing readiness or liveness checks, changing the application, or replacing the Service.

Before you begin

Use a disposable machine with Bash, Python 3, Docker, kind and kubectl. Docker may download the kind node and workload images. The lab creates the single-node cluster breakfix-apps-03, a separate kubeconfig and an ownership record under ~/.kube; it does not change your default kubeconfig or cloud resources. Do not reuse the lab cluster name. Setup refuses an existing cluster or files, and teardown checks its recorded node identity.

Investigate

./setup.sh
kubectl --kubeconfig "$HOME/.kube/breakfix-apps-03" -n breakfix-apps-03 get pods,service,endpoints
kubectl --kubeconfig "$HOME/.kube/breakfix-apps-03" -n breakfix-apps-03 describe pod -l app=probe-web
kubectl --kubeconfig "$HOME/.kube/breakfix-apps-03" -n breakfix-apps-03 exec deploy/probe-web -- wget -qO- http://127.0.0.1/

Inspect the probe in manifests.yaml, correct it, and apply the manifest with the dedicated kubeconfig:

kubectl --kubeconfig "$HOME/.kube/breakfix-apps-03" apply -f manifests.yaml
./verify.sh
./teardown.sh

Verification requires both probes, the original workload and Service, a ready endpoint belonging to the lab Pod, and a successful request through the Service. It does not claim to test production ingress, cloud networking or downstream dependencies. Teardown deletes only the cluster whose node matches the ownership record; it does not reset edited manifests.

The related probe guide and demonstration cover probe diagnosis; its video demonstrates liveness, while this lab focuses on readiness.

View Markdown source ↗

Get the lab

Download and inspect the installer before running it. It checks the archive's SHA-256 digest and refuses to overwrite an existing lab directory.

curl -fsSLO https://devops.download/labs/apps-03-readiness-probe.sh
less apps-03-readiness-probe.sh
bash apps-03-readiness-probe.sh
cd labs/apps-03-readiness-probe
./setup.sh

When you've made your changes, run ./verify.sh. Remove lab resources with ./teardown.sh.

Download the archive instead ↗

Need a nudge?

Hint #1

A running container is not necessarily Ready. Describe the Pod and inspect the readiness probe event.

Hint #2

Compare the readiness probe request with the endpoint actually served by the application; preserve both probes.

Hint #3 · Related guide on opsbreakfix.com

Read the related guide ↗

Solved it?

Explore the related guide on opsbreakfix.com.

Continue to opsbreakfix.com ↗