Is ``` allowPrivilegeEscalation ``` always under a container or can it be part . . .

kartik_kube:
Is

allowPrivilegeEscalation

always under a container or can it be part of the securityContext at the pod level?

Mohamed Ayman:
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.

Shwetha Shenoy V:
Do a kubectl explain for pod.spec.securityContext and pod.spec.containers.securityContext. It will display what is allowed.