Skip to content

Conflict between privileged and allowPrivilegeEscalation

In the manifest we have

kind: Namespace
metadata:
  labels:
    pod-security.kubernetes.io/enforce: privileged

but in the deployment there is

        securityContext:
          allowPrivilegeEscalation: false

This is causing a failure in deploying, at least on rke2 1.28.8, I think that the solution would be to set allowPrivilegeEscalation to true