How to set usage limits for ephemeral storage in OpenShift 4

Solution Verified - Updated -

Issue

  • The solution How to set quota for emptyDir volume usage on an Openshift Node? does not work in OpenShift 4. How can I protect my OpenShift 4 Compute Nodes from random writes to temporary container filesystems?
  • How can the amount of ephemeral storage be limited in a Pod?
  • Pods are evicted and the events show messages like:

    Pod ephemeral local storage usage exceeds the total limit of containers
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Ephemeral Storage

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