You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/storage-ephemeral-storage-manage.adoc
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
[id=storage-ephemeral-storage-manage_{context}]
9
9
= Ephemeral storage management
10
10
11
+
[role="_abstract"]
11
12
Cluster administrators can manage ephemeral storage within a project by setting quotas that define the limit ranges and number of requests for ephemeral storage across all pods in a non-terminal state. Developers can also set requests and limits on this compute resource at the pod and container level.
12
13
13
14
You can manage local ephemeral storage by specifying requests and limits. Each container in a pod can specify the following:
@@ -16,7 +17,7 @@ You can manage local ephemeral storage by specifying requests and limits. Each c
Limits and requests for ephemeral storage are measured in byte quantities. You can express storage as a plain integer or as a fixed-point number using one of these suffixes: E, P, T, G, M, k. You can also use the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki.
21
22
22
23
For example, the following quantities all represent approximately the same value: 128974848, 129e6, 129M, and 123Mi.
@@ -27,7 +28,7 @@ The suffixes for each byte quantity are case-sensitive. Be sure to use the corre
== Ephemeral storage configuration effects pod scheduling and eviction
78
+
.Ephemeral storage configuration effects pod scheduling and eviction
78
79
The settings in the pod spec affect both how the scheduler makes a decision about scheduling pods and when kubelet evicts pods.
79
80
80
81
* First, the scheduler ensures that the sum of the resource requests of the scheduled containers is less than the capacity of the node. In this case, the pod can be assigned to a node only if the node's available ephemeral storage (allocatable resource) is more than 4GiB.
@@ -84,7 +85,7 @@ endif::microshift[]
84
85
85
86
ifdef::microshift[]
86
87
[id=storage-ephemeral-storage-eviction_{context}]
87
-
== Ephemeral storage configuration effects pod eviction
88
+
.Ephemeral storage configuration effects pod eviction
88
89
The settings in the pod spec affect when kubelet evicts pods. At the container level, because the first container sets a resource limit, kubelet eviction manager measures the disk usage of this container and evicts the pod if the storage usage of the container exceeds its limit (4GiB). The kubelet eviction manager also marks the pod for eviction if the total usage exceeds the overall pod storage limit (8GiB).
You can use `/bin/df` as a tool to monitor ephemeral storage usage on the volume where ephemeral container data is located, which is `/var/lib/kubelet` and `/var/lib/containers`. The available space for only `/var/lib/kubelet` is shown when you use the `df` command if `/var/lib/containers` is placed on a separate disk by the cluster administrator.
11
12
12
13
.Procedure
13
14
14
-
* To show the human-readable values of used and available space in `/var/lib`, enter the following command:
15
+
* To show the human-readable values of used and available space in `/var/lib`, run the following command:
Copy file name to clipboardExpand all lines: modules/storage-ephemeral-storage-overview.adoc
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,7 @@
8
8
[id=storage-ephemeral-storage-overview_{context}]
9
9
= Overview
10
10
11
-
Pods and containers are ephemeral or transient in nature and designed for stateless applications. Ephemeral storage allows administrators and developers to better manage the local storage for some of their operations.
12
-
11
+
[role="_abstract"]
13
12
In addition to persistent storage, pods and containers can require ephemeral or transient local storage for their operation. The lifetime of this ephemeral storage does not extend beyond the life of the individual pod, and this ephemeral storage cannot be shared across pods.
14
13
15
14
Pods use ephemeral local storage for scratch space, caching, and logs. Issues related to the lack of local storage accounting and isolation include the following:
Copy file name to clipboardExpand all lines: modules/storage-ephemeral-storage-types.adoc
+5-10Lines changed: 5 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,11 @@
7
7
[id=storage-ephemeral-storage-types_{context}]
8
8
= Types of ephemeral storage
9
9
10
-
Ephemeral local storage is always made available in the primary
11
-
partition. There are two basic ways of creating the primary
12
-
partition: root and runtime.
10
+
[role="_abstract"]
11
+
Ephemeral local storage is always made available in the primary partition.
13
12
13
+
There are two basic ways of creating the primary partition:
14
14
15
-
== Root
15
+
* *Root*: This partition holds the kubelet root directory, `/var/lib/kubelet/` by default, and `/var/log/` directory. This partition can be shared between user pods, the OS, and Kubernetes system daemons. This partition can be consumed by pods through `EmptyDir` volumes, container logs, image layers, and container-writable layers. Kubelet manages shared access and isolation of this partition. This partition is ephemeral, and applications cannot expect any performance SLAs, such as disk IOPS, from this partition.
16
16
17
-
This partition holds the kubelet root directory, `/var/lib/kubelet/` by default, and `/var/log/` directory. This partition can be shared between user pods, the OS, and Kubernetes system daemons. This partition can be consumed by pods through `EmptyDir` volumes, container logs, image layers, and container-writable layers. Kubelet manages shared access and isolation of this partition. This partition is ephemeral, and applications cannot expect any performance SLAs, such as disk IOPS, from this partition.
18
-
19
-
20
-
== Runtime
21
-
22
-
This is an optional partition that runtimes can use for overlay file systems. {product-title} attempts to identify and provide shared access along with isolation to this partition. Container image layers and writable layers are stored here. If the runtime partition exists, the `root` partition does not hold any image layer or other writable storage.
17
+
* *Runtime*: This is an optional partition that runtimes can use for overlay file systems. {product-title} attempts to identify and provide shared access along with isolation to this partition. Container image layers and writable layers are stored here. If the runtime partition exists, the `root` partition does not hold any image layer or other writable storage.
Copy file name to clipboardExpand all lines: storage/understanding-ephemeral-storage.adoc
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,13 @@
1
1
:_mod-docs-content-type: ASSEMBLY
2
2
[id="understanding-ephemeral-storage"]
3
3
= Understanding ephemeral storage
4
-
include::_attributes/common-attributes.adoc[]
4
+
:toc:
5
+
:toc-title:
5
6
:context: understanding-ephemeral-storage
7
+
include::_attributes/common-attributes.adoc[]
8
+
9
+
[role="_abstract"]
10
+
Pods and containers are ephemeral or transient in nature and designed for stateless applications. Ephemeral storage allows administrators and developers to better manage the local storage for some of their operations.
0 commit comments