- Home
- All questions
- Question 623
CKA study material · question 623 of 1000
A namespace enforces the restricted Pod Security level. A Deployment whose template violates it is applied. What happens?
Show the answer
Answer: B. The Deployment is accepted, and its Pods are rejected instead
enforce applies only to Pod objects, not to workload resources; audit and warn are the modes evaluated against a Pod template, which is why a bad Deployment applies cleanly and then produces no Pods.
Source: Pod Security Admission (Kubernetes) — Workload resources and Pod templates