January 2019
Intermediate to advanced
484 pages
11h 48m
English
Similarly to EKS on AWS, GKE also sets up StorageClass by default; this uses Persistent Disk:
$ kubectl get storageclassNAME TYPEstandard (default) kubernetes.io/gce-pd$ kubectl describe storageclass standardName: standardIsDefaultClass: YesAnnotations: storageclass.beta.kubernetes.io/is-default-class=trueProvisioner: kubernetes.io/gce-pdParameters: type=pd-standardAllowVolumeExpansion: <unset>MountOptions: <none>ReclaimPolicy: DeleteVolumeBindingMode: ImmediateEvents: <none>
Consequently, when creating a persistent volume claim, this will automatically allocate the GCP Persistent Disk as the Kubernetes Persistent Volume. For more information on persistent volume claim and Dynamic Provisioning, please refer to Chapter 4
Read now
Unlock full access