hardkubectl
Display the full spec and events for a NetworkPolicy in the prod namespace
command
kubectl describe networkpolicy POLICY_NAME -n prodalso accepted
kubectl describe networkpolicykubectl describe networkpolicy POLICY_NAME -ncommand
kubectl describe networkpolicy POLICY_NAME -n prodalso accepted
kubectl describe networkpolicykubectl describe networkpolicy POLICY_NAME -nPart of the Kubernetes CLI (kubectl) — kubectl Advanced category.
| Flag | Purpose |
|---|---|
-n | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →