<p>Install Rancher 2.x HA cluster flow the <a href="https://rancher.com/docs/rancher/v2.x/en/installation/ha/helm-rancher/" rel="nofollow noreferrer">offical document</a>. But I can't install it without public DNS - hostname. Is there any way to avoid this? I try to use /etc/hosts file but it seems like there an issue with agent docker doesn't get config from custom DNS.<br>
I want to access the load-balancing cluster via IP, not via public DNS.</p>

Đinh Anh Huy
<p>Indeed, in a standard installation of Kubernetes, access to the API is done in HTTPS, and you need a certificate.</p>

<p>You can have a look at this doc: <a href="https://kubernetes.io/docs/reference/access-authn-authz/controlling-access/" rel="nofollow noreferrer">Controlling Access to the Kubernetes API</a>.</p>

<p>If your goal is just running a lab, maybe you can use <a href="http://xip.io/" rel="nofollow noreferrer">xip.io</a> if you do not have a DNS server on which you have the hand.</p>
