Before installing the vSphere Container Storage Plug-in in your generic Kubernetes environment, make sure that you taint the primary node with the node-role.kubernetes.io/master=:NoSchedule parameter.

Procedure

  1. To taint the primary node, run the following command:
    kubectl taint nodes <k8s-primary-name> node-role.kubernetes.io/master=:NoSchedule
  2. Verify that you have tainted the primary node.
    $ kubectl describe nodes | egrep "Taints:|Name:"
    Name:               <k8s-primary-name>
    Taints:             node-role.kubernetes.io/master:NoSchedule
    Name:               <k8s-worker1-name>
    Taints:             <none>
    Name:               <k8s-worker2-name>
    Taints:             <none>
    Name:               <k8s-worker3-name>
    Taints:             <none>
    Name:               <k8s-worker4-name>
    Taints:             <none>