Summary
In this chapter, we learned how Kubernetes persistent storage provides a convenient way for Kubernetes applications to request and consume storage resources. The PVC is declared by the user’s pod, and Kubernetes will find a PV to pair it with. If there is no PV to pair with, then it will go to the corresponding StorageClass
and assist it in creating a PV before binding it to the PVC. The newly created PV must use the attached master node to create a remote disc for the host and then mount the attached remote disc to the host directory using the kubelet
component of each node.
Kubernetes has made significant improvements to facilitate running stateful workloads by giving platform (or cluster administrators) and application developers the necessary abstractions. These abstractions ensure that different types of file and block storage (whether ephemeral or persistent, local or remote) are available wherever a container is scheduled (including provisioning/creating, attaching...