I saw that securityContext -> runAsUser can be applied both at the pod level . . .

kartik_kube:
I saw that
securityContext -> runAsUser
can be applied both at the pod level and at the container level. Will the exam specific which level to apply it on? Or is it usually applied on the pod level for the exam?
image.png
image.png

Nimesh Kumar:
pod level applies to all the containers, container level specifies the context for the container only

Robel Fesshaye:
you can set securitycontext at both levels but whatever u set at the container level will take precedence over what you have at the pod level.

kartik_kube:
thanks folks!