Setting Ulimits for files open in containers in RHOCP4: Configuring a Value higher than the default value

Solution Verified - Updated -

Issue

  • Unable to set a higher value than the default one for ulimits 'files open' in a container
  • ulimits 'files open' in containers is showing '1048576' even though the value is set higher in the crio service
  • Getting following error while setting nofile value to a higher value than the default,
setting rlimits for ready process caused: error setting rlimit type 7: operation not permitted

Environment

  • Red Hat OpenShift Container Platform 4.8+

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