Setting up self managed Kubernetes in GCE. Which kind of Persistent Disk to use with a Regional Managed Instance Group?

8/5/2020

I'm trying to set up a k8s cluster using a Regional Managed Instance Group that will create a group of VMs across all the zones of a region. I'm quite a bit confused on how Persistent Disks will work with this set up. I've set up a storage class with the underlying gcePersistentDisk as the provisioner.

If a pod makes a PVC claim to a disk and has replicas across multiple zones in the region, does that mean the PVC cannot be shared by the replicas across zones? Or is there a different way to set up the disk?

Is the only other option to use Zonal MiGs instead? Which will allow me to use PVCs across replicas since they are all guaranteed to be in the same zone

-- user12705884
google-compute-engine
google-kubernetes-engine
kubernetes
kubernetes-pod

0 Answers