Rancher should be super easy to use to setup a k8s cluster. It gives you one line commands to run on your worker nodes to connect them to your k8s cluster.
Their official docs are a little overwhelming, so here's a compressed guide:
- On the master node (lets call it master), run
sudo docker run --privileged -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
. This will launch the rancher web UI. - To access this from your laptop, you may need to port forward port 443 to your laptop. Do so with
ssh -L 8888:localhost:443 test
- Open localhost:8888 in your browser. Complete the initial setup and set any password for the webui. It will also ask for an address accessible from all nodes. This field will be prepopulated with https://localhost:8888. Change this to the ip address of the node (get with ip a, should be accessible from other nodes as well) and don't specify port. E.g., https://10.35.0.21/.
- You'll see the rancher UI. Click on Create clus