Search⌘ K

Getting Started with Volumes

Explore how Kubernetes volumes help preserve application state despite container or node failures. Understand different volume uses, including accessing host resources and storing configurations. This lesson equips you to manage stateful workloads effectively within Kubernetes.

State preservation

Note: Having a system without a state is impossible. Even though there is a tendency to develop stateless applications, we still need to deal with the state. There are databases and other stateful third-party applications. No matter what we do, we need to make sure that the state is preserved regardless of what happens to containers, Pods, or even whole nodes.

Most of the time, stateful applications store their state on disk. This leaves us with a problem. If a container crashes, kubelet will restart it. The problem is that it will create ...