OpenShift Setting and Enforcing emptyDir Quotas: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 15: Line 15:
==Configure Nodes to Allocate Local Volume Space on an XFS File System==
==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 [[Node-config.yml|/etc/origin/node/node-config.yaml]].
The local volume space on a node is allocated on a directory configured in [[Node-config.yml#Local_Volume_Configuration|/etc/origin/node/node-config.yaml]].


==Configure the XFS File System to Allow Quota Enforcement==
==Configure the XFS File System to Allow Quota Enforcement==


==Configure Pod Templates==
==Configure Pod Templates==

Revision as of 21:01, 19 February 2018

External

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.

Configure the XFS File System to Allow Quota Enforcement

Configure Pod Templates