Error message: Error creating pods "testpod" is forbidden: unable to validate against any security context constraint: [pod.spec.securityContext.sysctl[0]: Forbidden: unsafe sysctl "net.core.somaxconn" is not allowed]

Solution Verified - Updated -

Issue

  • We have followed the official documentation on sysctls but we are still receiving:

    Error message: Error creating pods "testpod" is forbidden: unable to validate against any security context constraint: [pod.spec.securityContext.sysctl[0]: Forbidden: unsafe sysctl "net.core.somaxconn" is not allowed]
    

Environment

  • OpenShift Container Platform (OCP) 3.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