| name | network-policy-dns-debugger |
| description | Investigate Kubernetes service connectivity, DNS lookup, ingress routing, and NetworkPolicy problems. |
Network Policy and DNS Debugger
Use this skill when pods cannot connect to services, ingress routes fail, or DNS
lookups appear broken.
Workflow
- Identify source pod, destination Service, namespace, port, and protocol.
- List Services, Endpoints or EndpointSlices, Ingresses, HTTPRoutes, and
NetworkPolicies in the relevant namespaces.
- Describe the source pod and destination Service.
- Check whether the Service selector matches ready pods.
- Check NetworkPolicies that select the source or destination pod.
- Check recent events for failed ingress or gateway reconciliation.
Output
Return:
- Source and destination path
- DNS name or Service being tested
- Endpoint readiness
- NetworkPolicy or routing constraint found
- Minimal manifest change needed to restore connectivity