← Services536 / 640
hardkubectl

Apply a NetworkPolicy manifest to restrict ingress or egress traffic between pods

command

kubectl apply -f networkpolicy.yaml

also accepted

kubectl apply -f

Test your recall — not just your reading.

Practice with interactive quiz →