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.
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.