Is that possible install rancher HA without any public domain (--set hostname)

10/12/2019

Install Rancher 2.x HA cluster flow the offical document. 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.
I want to access the load-balancing cluster via IP, not via public DNS.

-- Đinh Anh Huy
docker
kubernetes
rancher

1 Answer

10/12/2019

Indeed, in a standard installation of Kubernetes, access to the API is done in HTTPS, and you need a certificate.

You can have a look at this doc: Controlling Access to the Kubernetes API.

If your goal is just running a lab, maybe you can use xip.io if you do not have a DNS server on which you have the hand.

-- Stéphane Beuret
Source: StackOverflow