Kubernetes volumes
Ephemeral volumes and persistent volumes are two main types of volumes in Kubernetes. We’ll take a look at each of them. Some of them may not be covered in the CKA exam, but it is important to know, as whichever organization you work in will have embarked on its journey with one of those public cloud providers.
Ephemeral storage
Ephemeral volumes targeted to the application need to hold the data, but they don’t care about data loss in the case that the pod fails or restarts – the lifecycle of the ephemeral volume is aligned with the pod lifecycle. With that in mind, mounted storage is usually ephemeral, as it shares the same lifecycle as your containers. As long as the container is stopped or destroyed during the process of restarting the pod, any internal storage is completely removed.
Another use case is when a pod contains multiple containers. It is possible to mount that storage to the containers and allow those containers to share...