Google Cloud Platform (GCP) provides persistent block-level storage volumes for use with Google Kubernetes Engine (GKE) instances. In this section, we will create storage classes for your applications in Kubernetes running in the GKE. You will learn to create a StorageClass resource in Kubernetes, you will learn about the parameters available with the variation in performance of GCP PD volume types, and also use the new CSI.
Clone the k8sdevopscookbook/src repository to your workstation:
$ git clone https://github.com/k8sdevopscookbook/src.git
$ cd src/chapter5
Make sure that you have a regional GKE cluster ready and kubectl configured to manage the cluster resources.
How to do it…
This section is sub-divided further into the following subsections to facilitate the process:
- Creating a GCE persistent disk storage class
- Changing the default storage class
- Using GCE PD volumes for persistent storage
- Using GCE PD storage classes to...