easykubectl
Apply a NetworkPolicy manifest from a file to restrict pod-to-pod traffic
command
kubectl apply -f network-policy.yamlalso accepted
kubectl apply -fcommand
kubectl apply -f network-policy.yamlalso accepted
kubectl apply -fPart of the Kubernetes CLI (kubectl) — kubectl Advanced category.
| Flag | Purpose |
|---|---|
-f | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →