CKAD Prep Part 5 – Kubernetes SecurityContexts

Kubernetes SecurityContext A SecurityContext is a Kubernetes object, defined as part of the Pod spec, that describes the privileges and access control settings for a Pod. The primary settings for a SecurityContext are runAsUser - allows you to run containers as a specified user runAsGroup - allows you to run containers as a specified group fsGroup allows you to run containers with and a specific file system group These settings can be applied at the Pod or container level. If applied at the Pod level the settings will apply to all containers in the Pod. If the SecurityContext is defined at both the Pod and [...]