- Home
- All questions
- Question 762
CKA study material · question 762 of 1000
A from block contains two list entries: one with a namespaceSelector and one with a podSelector. What does it allow?
Show the answer
Answer: C. Pods in the matching namespaces, or matching Pods in the policy's own namespace
Two list entries are alternatives, and a bare podSelector applies only to the policy's own namespace. Combining both selectors in a single entry is what narrows it to particular Pods in particular namespaces.
Source: Network Policies (Kubernetes) — Behavior of to and from selectors