How to fix "Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) [10.xxx.xxx.36]" in Rancher?

7/9/2019

When i would like to join a node by selecting etcd, Controle Plane and Worker in rancher UI, i got this error:

Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) [10.xxx.xxx.36]

Click here to see the screenshot

So Rancher it could not download the remind docker containers (like etcd, kubectl..) automatically since the docker images should be preceded by the proxy: dockerproxy-iva.si.francetelecom.fr:

  • example: docker pull dockerproxy-iva.si.francetelecom.fr/ubuntu for downloading ubuntu images.

Any help to resolve this would be appreciated. Thank you in advance!

-- Mohamed
docker
etcd
kubectl
kubernetes
rancher

1 Answer

12/3/2019

You can define a private registry that Rancher should use to build downstream Kubernetes clusters with by setting the system-default-registry parameter in the "Settings" section of the Rancher UI. Then when you launch clusters, it should use this registry to fetch the images. This assumes you have already copied the images needed to this repo (example of how to do that).

Since you already created this cluster, you'll need to regenerate the docker run command and reapply to the node.

-- wjimenez5271
Source: StackOverflow