Custom Storage Class
Add a custom storage class.
By default, GKE uses a standard (pd-standard)
disk as the default storage
class. Here we
setup a custom storage class backed by ssd disk
.
cat <<EOF | kubectl apply -f -kind: StorageClassapiVersion: storage.k8s.io/v1metadata:name: fastprovisioner: kubernetes.io/gce-pdparameters:type: pd-ssdzone: us-central1-afsType: ext4EOF
Verify by running
kubectl get sc
Note
This storage class will be used globally by all of our applications, so if
another name is used (other than fast
), make sure to configure the application
accordingly.