Pods fail to create due to "allowPrivilegeEscalation: true" in OpenShift 4.11

Solution In Progress - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content