From the course: Kubernetes and Cloud Native Associate (KCNA) Cert Prep

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Kubernetes storage options

Kubernetes storage options

- In this video, we will talk about Kubernetes storage options. So how does storage work? Pods can be configured with volumes in the pod specification. In that case, a pod has a direct relation to the volume, and the volume that is defined is specific. So that is kind of cool. It's simple, but it's not really cloud native because it's not decoupling. So it works in simple environments, but it makes it impossible to use the same pod specification in a different cluster where other storage is used. If you want to provide flexible decoupled storage where the pod does not know which specific storage type it is using, you can use a persistent volume resource. And to dynamically bind to this site-specific persistent volume, the pod can be configured with a persistent volume claim. In this scenario, the persistent volume claim contains the request of a specific storage size and access type, and that would be a read/write or a read-only. But the PVC is not a requesting a specific kind of…

Contents