OpenShift Setting and Enforcing emptyDir Quotas
Jump to navigation
Jump to search
External
- How to set quota for emptyDir volume usage on an Openshift Node? https://access.redhat.com/solutions/3110681
Internal
Overview
By default, pods can allocate on emptyDirs as much space as the underlying filesystem has available. It is possible to set up a configuration that would restrict space allocation to a quota enforced with the XFS quota mechanism, provided that the backing filesystem used to allocate space for emptyDirs is XFS.
Procedure
Configure Nodes to Allocate Local Volume Space on an XFS File System
The local volume space on a node is allocated on a directory configured in /etc/origin/node/node-config.yaml.
To configure quota enforcement, bring the node down as described here:
Attach a block device with sufficient storage space to the node. If the node is a KVM host, the procedure is described here:
At the end of the procedure, the node should mount an extra XFS filesystem.