Kubernetes Security Contexts

If you configure the Security Contexts at the pod and container level, settings on the container level will override those at the pod level.

Examples:
spec.securityContext:

securityContext:
  runAsUser: 1000

To set them at container level move everything above to the spec.containers.securityContext. Note that Capabilities can be defined only at the container level:
spec.containers.securityContext:
securityContext:
  runAsUser: 1000
  capabilities:
    add: {"MAC_ADMIN"}