Section: Network Policy

Describe network policy

bash
bash
kubectl describe networkpolicy default-deny -n payments
Explanation

Inspect ingress and egress rules.

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 Policy
List network policies
Show NetworkPolicy resources.
OpenIn sheetbashsame section
Apply network policy
Create or update a NetworkPolicy manifest.
OpenIn sheetbashsame section
Delete network policy
Remove a NetworkPolicy.
OpenIn sheetbashsame section
Describe service
Inspect selectors, endpoints, ports, and type.
OpenIn sheetbash1 tag match
Describe PVC
Inspect requested storage, status, and bound PV.
OpenIn sheetbash1 tag match
Describe configmap
Inspect key-value data and metadata.
OpenIn sheetbash1 tag match