이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 26. Configuring ephemeral storage


26.1. Overview

OpenShift Container Platform can be configured to allow management of ephemeral storage of pod and container working data. While containers have been able to utilize writable layers, logs directories, and EmptyDir volumes, this storage has been subject to a number of limitations, as discussed here.

Ephemeral storage management permits administrators to limit the resources consumed by individual pods and containers, and for pods and containers to specify requests and limits on their use of such ephemeral storage. This is a technology preview for OpenShift Container Platform 3.10 and is disabled by default.

Note

This technology preview does not change any of the mechanisms for making local storage available in OpenShift Container Platform; the existing mechanisms, root directory or runtime directory, still apply. This technology preview only provides a mechanism for managing the use of this resource.

26.2. Enabling ephemeral storage

To enable ephemeral storage:

  1. Edit or create the master configuration file on all masters, /etc/origin/master/master-config.yaml by default, and add LocalStorageCapacityIsolation=true in the apiServerArguments and controllerArguments sections:

    apiServerArguments:
       feature-gates:
       - LocalStorageCapacityIsolation=true
    ...
    
     controllerArguments:
       feature-gates:
       - LocalStorageCapacityIsolation=true
    ...
  2. Edit the ConfigMap for all nodes to enable the LocalStorageCapacityIsolation on the command line. You can identify the ConfigMaps that need to be edited as follows:

    $ oc get cm -n openshift-node
    NAME                  DATA      AGE
    node-config-compute   1         52m
    node-config-infra     1         52m
    node-config-master    1         52m

    For each of these maps, node-config-compute, node-config-infra, and node-config-master, you need to add the feature gate:

    oc edit cm node-config-master -n openshift-node

    If there is already a feature-gates: declaration, add the following text to the list of feature gates:

    ,LocalStorageCapacityIsolation=true

    If there is no feature-gates: declaration, add the following section:

      feature-gates:
      - LocalStorageCapacityIsolation=true
  3. Repeat for node-config-compute, node-config-infra, and any other ConfigMaps.
  4. Restart OpenShift Container Platform and delete the container running the apiserver.
Note

Omitting any of these steps may result in ephemeral storage management not being enabled.

Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.