Section: Network Policy

List network policies

bash
bash
kubectl get networkpolicies -A
Explanation

Show NetworkPolicy resources.

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
Describe network policy
Inspect ingress and egress rules.
OpenIn sheetbashsame section
Apply network policy
Create or update a NetworkPolicy manifest.
OpenIn sheetbashsame section
Delete network policy
Remove a NetworkPolicy.
OpenIn sheetbashsame section
List services
Show services across namespaces.
OpenIn sheetbash1 tag match
List PVCs
Show PersistentVolumeClaims across namespaces.
OpenIn sheetbash1 tag match
List configmaps
Show ConfigMaps across namespaces.
OpenIn sheetbash1 tag match