vsphere pvc (in-tree)
To use Vmware datastores as storage for your Kubernetes/Rancher Cluster you absolutely MUST provision the cluster with a cloud provider. This does not work if you already have the cluster in place, not sure why. Maybe there are other ways but this worked for me :)
Prepare the cloud provider yaml
Replace the IP address of Virtual Center with IP or FQDN
Replace Username and password (duuh)
My datacenter is called “QNet” so replace it this name where appropriate, folder should be where your K8 Nodes reside
Create a new cluster in Rancher and tick “Custom cloud provider” and the click edit as yaml in the upper right corner
Provision the cluster
Once you have created the storage class you can test it by going to your default project/namespace and click volumes
Done
Last updated