How to setup cloud-provider on Live Cluster

4/1/2020

I have a running HA-Cluster with external ETCD.

I try to setup Vsphere Cloud Provider but i didn't set the following code in the InitialConfiguration:

nodeRegistration:
  kubeletExtraArgs:
    cloud-provider: external

Is there a way to do this on a running Cluster?

I've try to add this code to the kubelet configmap and also to the /var/lib/kubelet/config.yaml on every master and worker node.

But the taint node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule still doesn't show up on the nodes.

Is there any other way to setup cloud-provider on a running cluster.

DynamicConfiguration isn't enabled.

-- meilel
kubelet
kubernetes
vsphere

1 Answer

4/2/2020

If you want to setup your cluster on a specific cloud provider you can use kubeadm:

kubeadm is a popular option for creating kubernetes clusters. kubeadm has configuration options to specify configuration information for cloud providers.

For vSphere specifically it would depend on the version you have:

Also you can check out the vSphere Cloud Provider Configuration for more details regarding the:

  • Prerequisites
  • Permissions
  • Kubernetes Configuration
  • Enabling the vSphere Cloud Provider
  • Securing vSphere username and password

Please let me know if that helped.

-- OhHiMark
Source: StackOverflow