hardkubectl

Display the full spec and events for a NetworkPolicy in the prod namespace

command

kubectl describe networkpolicy POLICY_NAME -n prod

also accepted

kubectl describe networkpolicykubectl describe networkpolicy POLICY_NAME -n

Command breakdown

Part of the Kubernetes CLI (kubectl) — kubectl Advanced category.

kubectldescribenetworkpolicyPOLICY_NAME-nprod
FlagPurpose
-nBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →