- Home
- All questions
- Question 800
CKA study material · question 800 of 1000
A NetworkPolicy in namespace web has an ingress rule whose from block contains only a podSelector matching app=api. Which Pods does it admit?
Show the answer
Answer: B. Pods labelled app=api in namespace web only
A bare podSelector always selects within the NetworkPolicy's own namespace; reaching Pods elsewhere requires a namespaceSelector in the same entry.
Source: Network Policies (Kubernetes) — Behavior of to and from selectors