To set up the in-tree vSphere cloud provider, follow these steps while creating the vSphere cluster in Rancher:

    1. Set Cloud Provider option to Custom or Custom (In-Tree).

      vsphere-node-driver-cloudprovider

    2. Click on Edit as YAML

    3. Insert the following structure to the pre-populated cluster YAML. This structure must be placed under rancher_kubernetes_engine_config. Note that the name must be set to vsphere.

      1. rancher_kubernetes_engine_config:
      2. cloud_provider:
      3. name: vsphere
      4. vsphereCloudProvider:
      5. [Insert provider configuration]

    Rancher uses RKE (the Rancher Kubernetes Engine) to provision Kubernetes clusters. Refer to the vSphere configuration reference in the RKE documentation for details about the properties of the vsphereCloudProvider directive.