Summary
In this chapter, we reviewed two methods of providing storage on Kubernetes – volumes and persistent volumes. First, we discussed the difference between these two methods: while volumes are tied to the lifetime of the Pod, persistent volumes last until they or the cluster is deleted. Then, we looked at how to implement volumes and attach them to our Pods. Lastly, we extended our learning on volumes to persistent volumes, and discovered how to use several different types of persistent volumes. These skills will help you assign persistent and non-persistent storage to your applications in many possible environments – from on-premises to the cloud.
In the next chapter, we'll take a detour from application concerns and discuss how to control Pod placement on Kubernetes.