I have a small Rancher cluster which I am able to easily deploy to my vCenter. However, I did not initially set it up with a Cloud Provider as I will require persistent storage. I am in the process of doing a redeploy and have been hitting a wall getting it to locate the folder. It appears, looking through vCenter logs to be able to connect and even see the datastore.
Rancher Version: 2.2.8
vCenter: 6.7 onto a 6.5 ESXi host
CentOS7 (fully patched)
Here is the cloud provider setup I’m using and I’m hoping my mistake is small:
cloud_provider:
name: vsphere
vsphereCloudProvider:
global:
insecure-flag: true
virtual_center:
www.vcenterserver.com:
user: administrator@vsphere.local
password: blahblahblah
datacenters: Datacenter
workspace:
server: www.vcenterserver.com:
folder: rancher-pv-01
datacenter: Datacenter
default-datastore: SC02
disk:
scsicontrollertype: pvscsi
network:
public-network: DHCP
Forgot to include the error:
I0924 18:03:04.603132 1 event.go:209] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"default", Name:"vol-01", UID:"0cfbd0ec-def5-11e9-8275-005056b17f97", APIVersion:"v1", ResourceVersion:"7961", FieldPath:""}): type: 'Warning' reason: 'ProvisioningFailed' Failed to provision volume with StorageClass "vcenter-storage-class": folder 'rancher-pv-01' not found