hardkubectl

List all network policies controlling traffic flow between pods

command

kubectl get networkpolicies

also accepted

kubectl get networkpolicykubectl get netpol

Command breakdown

Part of the Kubernetes CLI (kubectl) — Resource Operations category.

kubectlgetnetworkpolicies

Test your recall — not just your reading.

Practice with interactive quiz →