QuestionQ40

VerifiedKubernetes Security Fundamentals

Which label should be applied to the Namespace to prevent any privileged Pods from being created there?

Explanation

The pod-security.kubernetes.io/enforce: baseline label applies the Baseline Pod Security Standard in enforcing mode, so Pods that request privileged containers are rejected. Kubernetes defines enforce labels as the mechanism that denies Pods violating the selected security profile, and Baseline disallows privileged access.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!