How can I create gcePD and link it as persistent volume to on-premise k8s cluster?

10/23/2018

How can I create gcePD (google persistent disk) and link it as persistent volume (pv) to on-premise kubernetes cluster? It is required to resolve persistentvolume-controller - no persistent volumes available for this claim and no storage class is set message when I deployed some helm chart.

Please explain the steps for that. Thank you.

-- Dmitrii
google-kubernetes-engine
kubectl
kubernetes
kubernetes-helm

1 Answer

10/24/2018

I don't think it's possible, GCE persistent disks are not exposed outside of GCE. Your servers need to be in GCE.

You could probably set a remote PV using Azure Files, but unless you need them for low-performance storage, I'd be wary of the speed and latency if you don't have a direct connect pipe to the Azure cloud.

You could also set up a GCE disk shared filesystem with Ceph, ScaleIO, etc, but again you would be going across the public cloud if you don't have a private direct connect.

-- Rico
Source: StackOverflow