From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Ephemeral and persistent storage

Ephemeral and persistent storage

- All right, let's talk about storage in Kubernetes environments. First thing that you need to understand is how container storage is organized by default as ephemeral storage. So, what is behind this ephemeral storage? Well, when a container is started, the container working environment is created as a directory on the host that runs the container. And in this directory, a subdirectory is created to store changes inside the container, and the subdirectory is ephemeral, and it disappears when the container disappears. So, container storage by default is ephemeral. Now, this ephemeral storage is also a host-bound, and that doesn't work well in the cloud environment where multiple application instances are running. If you are running multiple application instances, you need to make sure that all instances have access to the same storage. And that is why we need to do something to provide cloud storage. So, to provide persistent storage, the data needs to be stored separately. And also…

Contents