We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Broken Cluster

Real outages rarely come with a single, obvious error. Usually you just get a symptom, like "the website is down", and have to work backwards from there. I like to start from a high-level symptom and work down to the root cause, often like this:

  1. kubectl get pods to find pods that aren't Running and ready.

  2. kubectl describe pod when I find a specific pod having issues, paying special attention to the Events section at the bottom.

  3. kubectl logs when a pod is crash looping. The application code usually tells you why it died.

  4. kubectl get endpoints when the pods look fine but traffic isn't getting through.

That last one can be... sneaky. A service whose selector matches no pods is perfectly valid, so Kubernetes won't warn you about it.

Assignment

Over the weekend, someone "tidied up" the SynergyChat manifests and applied them. On Monday morning, three things are wrong:

  • The website won't load. The web pod is Running, but it never becomes ready.

  • The API is crash looping. Its RESTARTS count keeps climbing.

  • The crawler pod looks perfectly healthy, but no traffic reaches it.

Fix all three problems. Each one can be fixed by a simple update in these configuration YAML files, so fix the file and apply it.

Submit the shell checks.