This is my documentation for how to in my POC project for Kubernetes deployment using rancher in one of my customer private cloud based on Cloudstack. I assume you have understood the usage, if not please go and check the documentation first to get the how to here

1. 3 Master node for Rancherd control plane and kubernetes etcd masters
2. 3 worker nodes for kubernetes with deployement rancherd agent
3. Cloudstack loadbalancer for Rancher and rancherd HA and exposing HTTP/HTTPS port from kubernetes deployment

IP address allocation

  • for 1st rancher node
  • for 2nd rancher node
  • a public IP address of a domain

OS/VM Configuration

– Ubuntu 20.04
– ufw disabled

– Disable memory swappines

RancherD Instalation On 1st master

  • Download and install rancherD for Master Nodes

Get token and save it from /var/lib/rancher/rke2/server/node-token. It will be use in the 2nd/3rd master rancherD-agent.

  • Create config /etc/rancher/rke2/config.yaml with rancher url, hostname and ip address of masters
  • Restart Rancher
  • Configure the kubectl and kubeconfig

Install Rancher on 2nd and N masters

  • Download and install RancherD 
  • Create config for rke2 to connect each other with the token from 1st master
  • Enable and start rancherD-agent
  • Check the log on each node to make sure all connected

Configure TCP load balancer

  • Configure Load balancer for Rancher UI port 8443 to master1-N
  • Configure Load balancer for kubeapi port 6443 to master1-N
  • Configure Load balancer for rancherd port 9345 to master1-N

Then enjoy your Kubernetes deployment using rancherD

IDCloudHost | SSD Cloud Hosting Indonesia
Previous ArticleNext Article

Leave a Reply

Your email address will not be published. Required fields are marked *