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.

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