On-disk files in a container are ephemeral, which presents some problems for non-trivial applications when running in containers. One problem is the loss of files when a container crashes. The kubelet restarts the container but with a clean state. A second problem occurs when sharing files between containers running together in a Pod. The Kubernetes volume abstraction solves both of these problems.
3 hours
- Volume types
- Persistent volumes
Video:
- Kubernetes Volumes 1 - https://youtu.be/VB7vI9OT-WQ
- Kubernetes Volumes 2 - https://youtu.be/OulmwTYTauI
- Kubernetes Volumes 3 - https://youtu.be/X6Vkz-ny574