- Home
- All questions
- Question 796
CKA study material · question 796 of 1000
A NetworkPolicy must permit traffic from the namespace named monitoring, which carries no custom labels. What can the namespaceSelector match on?
Show the answer
Answer: A. The automatic kubernetes.io/metadata.name label
The control plane sets an immutable kubernetes.io/metadata.name label on every namespace, which lets a policy select a namespace by name even though it cannot name one directly.
Source: Network Policies (Kubernetes) — Targeting a Namespace by its name