This example is an extended version of the Google Cloud Storage integration showcased in Section 4.1 of the paper Pods-as-Volumes: Effortlessly Integrating Storage Systems and Middleware into Kubernetes, in Seventh International Workshop on Container Technologies and Container Clouds (WoC '21).
-
File
provisioner.yaml
defines thePavProvisioner
. -
File
usage-dynamic.yaml
shows how to use the provisioner with dynamically-provisioned volumes, defining (1) aStorageClass
that references thePavProvisioner
, (2) aPersistentVolumeClaim
that causes a GCS bucket to be allocated and is backed by it, and (3) aPod
that mounts thePersistentVolumeClaim
and sleeps forever. -
File
usage-static.yaml
shows how to use the provisioner with statically-provisioned volumes, defining (1) aPersistentVolume
that references thePavProvisioner
and is backed by an existing GCS bucket, (2) aPersistentVolumeClaim
that references thePersistentVolume
, and (3) aPod
that mounts thePersistentVolumeClaim
and sleeps forever.