Inspect ingress and egress selectors and ports.
Section: Network Policies
Describe a NetworkPolicy
bash
bash
kubectl describe networkpolicy <name> -n <namespace>Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Network Policies
Test outbound access from a pod
Validate whether egress is blocked by policy or firewall.
Describe an EndpointSlice
Inspect ready addresses and ports at slice level.