How to set usage limits for ephemeral storage in OpenShift 4
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.