- Home
- All questions
- Question 797
CKA study material · question 797 of 1000
You need a NetworkPolicy that limits who may reach an nginx Service. What does the policy actually select?
Show the answer
Answer: C. The labels on the Pods behind the Service
NetworkPolicy operates on Pods, not Services, so restricting access to a Service means writing a podSelector matching the Pods that back it.
Source: Declare Network Policy (Kubernetes) — Limit access to the nginx service