devops.observer
← All labs

Kubernetes networking / Intermediate / 25–40 min

The service with no backends

A healthy web pod is running, but its Kubernetes Service has no ready endpoints. Trace the selection problem and restore in-cluster access.

LAB IDdevops-02-k8s-missing-endpointsTRACK / devops.observer
Engineer investigating a server rack in a DevOps troubleshooting lab

The scenario

A team reports that the web Service cannot reach its healthy backend in a disposable kind cluster. Restore Service connectivity without changing the deployment or deleting the namespace.

Mission objectives

  • Inspect the Service, its endpoints, and the pod labels.
  • Restore ready endpoints for the web Service without changing the deployment.
  • Verify a request reaches the application through the Service.

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/devops-02-k8s-missing-endpoints.sh
less devops-02-k8s-missing-endpoints.sh
bash devops-02-k8s-missing-endpoints.sh
cd labs/devops-02-k8s-missing-endpoints
./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

Compare the Service selector with the labels on the running pod.

Hint #2

Use the lab-specific kubeconfig and inspect EndpointSlices before changing the Service.

Hint #3 · Deep Dive Runbook on opsbreakfix.com

Read the deep dive runbook ↗

Solved it?

Read the Official Root Cause Analysis & Certification Roadmap on opsbreakfix.com

Continue to opsbreakfix.com ↗

OpsBreakFix ecosystem

Explore the sites.

One connected home for operations knowledge and tools.