October 2019
Intermediate to advanced
520 pages
13h 5m
English
The easiest way to use persistent storage in GKE is to use GCP services such as Cloud SQL, Datastore, or Cloud Storage. However, you can also expose storage directly to your Pods using Kubernetes abstraction layers. Storage is delivered to Pod containers using volumes. These volumes can be backed either by ephemeral or durable storage. While ephemeral storage is good for scratch space, to persist the state, durable storage is needed:

When a Pod crashes and is redeployed, the files that are stored on a local disk will be lost. To keep the state, you need to use external storage outside of the Pod. To do this, you can use PersistentVolumes ...
Read now
Unlock full access