9/1/2023 0 Comments Ephemeral storage kubernetesTherefore, the Pod requests a total of 10GiB (8GiB+2GiB) of local ephemeral storage and enforces a limit of 12GiB of local ephemeral storage. The second container requests 2GiB of local storage, but no limit setting. The first container has a request of 8GiB of local ephemeral storage and a limit of 12GiB. In the following example, the Pod has two containers. Each container of a Pod can specify either or both of the following: You can specify ephemeral-storage for managing local ephemeral storage. Setting requests and limits for local ephemeral storage If users configure the local storage in different ways, kubelet might not be able to correctly measure disk usage and use this feature. Typically, both /var/lib/kubelet and /var/log are on the system's root filesystem. How to use local storage capacity isolationĪ typical configuration for local ephemeral storage is to place all different kinds of ephemeral local data (emptyDir volumes, writeable layers, container images, logs) into one filesystem. The limits and requests for shared ephemeral-storage are similar to those for memory and CPU consumption. It also allows setting ephemeral storage requests for resource reservation. It provides support for capacity isolation of shared storage between pods, such that a pod can be hard limited in its consumption of shared resources by evicting Pods if its consumption of shared storage exceeds that limit. The local storage capacity isolation feature allows users to manage local ephemeral storage in the same way as managing CPU and memory. Local storage is a best-effort resource and pods can be evicted due to other pods filling the local storage. Before this feature was introduced, there were issues related to the lack of local storage accounting and isolation, such as Pods not knowing how much local storage is available and being unable to request guaranteed local storage. It is exposed to pods using the container’s writable layer, logs directory, and EmptyDir volumes. The lifetime of local ephemeral storage does not extend beyond the life of the individual pod. Pods use ephemeral local storage for scratch space, caching, and logs. With Kubernetes 1.25 we are excited to announce general availability(GA) of this feature. Local ephemeral storage capacity isolation was introduced as a alpha feature in Kubernetes 1.7 and it went beta in 1.9.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |