From the course: OpenShift Essential Training: Container Orchestration and Deployment

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Understanding OpenShift storage

Understanding OpenShift storage

- [Instructor] You can't run stateful applications. so application that can store data and keep that data between pod restarts, without knowing a little about persistent storage within OpenShift. So this is exactly what we will cover. Imagine you're working on a document and suddenly your computer crashes. When you restart, all your work is gone. Now, imagine the same thing happening in OpenShift. You deploy an application, it runs fine, but when the pod restarts, all the data is wiped out. That's because containers have ephemeral, also known as temporary, storage, by default. They do not have persistent storage. Ephemeral storage is temporary, so it exists only as long as the pod is running. Once the pod is deleted or restarted, any data stored in ephemeral volumes is lost. Persistent storage, on the other hand, survives pod restarts. It's stored outside the pod and is managed separately using persistent volumes and persistent volume claims. This is required for databases, logs, and…

Contents