From the course: Automating Kubernetes with GitOps

Unlock this course with a free trial

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

Kubernetes storage

Kubernetes storage

- So your applications will also need access to storage. By nature container storage is ephemeral. That means you remove the container. All files you created in it are gone unless you've taken your measures to provide some persistent storage. In Kubernetes, bots may be configured with volumes as persistent storage, and these volumes can directly defer to different types of external storage. That's a pod volume. And as an alternative to the pod volume, you can also use persistent volumes. And the persistent volumes can be used as dedicated objects to point to the specific storage. Pods can then be configured with a persistent volume claim. And using persistent volume claims allows for an increased level of flexibility. In a GitOps environment, using PVCs is recommended as it allows you to create specific persistent volumes for each environment and point to these persistent volumes in a very flexible way so that if your application is in the QA states, it'll have access to different…

Contents