Getting ready
Storage providers are required when you start to use volume in Kubernetes, except for emptyDir, which will be erased when the Pod is removed. For other storage providers, folders, servers, or clusters have to be built before using them in the Pod definition. Dynamic provisioning was promoted to stable in Kubernetes version 1.6, which allows you to provision storage based on the supported cloud provider.
In this section, we'll walk through the details of emptyDir, hostPath, nfs, glusterfs, downwardAPI, and gitRepo. Secret, which is used to store credentials, will be introduced in the next section. Projected, on the other hand, is a way one could group other volume resources under one single mount point. As it only supports
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access