Skip to content
Go back

The policy that allows the API but blocks its names

Debug a default-deny Kubernetes egress policy that permits the database IP path but silently blocks DNS.

The incident you will investigate

This lab runs in a simulated terminal in your browser. No account, cloud resources, or live cluster is required. Inspect the evidence, diagnose the cause, apply a fix, and verify the result.

environment
production cluster
workload
deployment/inventory-api
status
degraded
symptom
service names time out while direct IP connectivity works

What you will practice

inventory-api started failing after an egress policy rollout. Pods are Running, but the application cannot resolve redis.cache.svc.cluster.local.

Separate name resolution from TCP reachability using a test inside the affected Pod.

Try: kubectl exec deployment/inventory-api -- nslookup redis.cache.svc.cluster.local

Related labs