Pods fail to create due to "allowPrivilegeEscalation: true" in OpenShift 4.11
Issue
- When pods are being created, the creation fails with errors like
Error from server (Forbidden): error when creating "/home/user/templates/pod.yaml": pods "mypod" is forbidden: unable to validate against any security context constraint: [<snip> spec.containers[0].securityContext.allowPrivilegeEscalation: Invalid value: true: Allowing privilege escalation for containers is not allowed, provider "restricted": Forbidden: not usable by user or serviceaccount, <snip>]
Environment
- Red Hat OpenShift Container Platform 4.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.