This is a minimal set of tools, recomended to make life a bit more simple to get started. If you have a preferred way of doing this as we all do by all means please do. The one common tool that bootstrapping the clusters heavily relies on is Rancher Desktop, it is strongly recommended that this be used to follow along.
Install Windows Terminal
wsl --install
- Intall VScode - https://code.visualstudio.com/download#
- Install Rancher Desktop - https://rancherdesktop.io
- Install Git - https://git-scm.com/downloads
- Intall VScode - https://code.visualstudio.com/download#
- Install Rancher Desktop - https://rancherdesktop.io
- Install Git - https://git-scm.com/downloads
- Intall VScode - https://code.visualstudio.com/download#
- Install Rancher Desktop - https://rancherdesktop.io
- Install Git - You can do this via your distros package manager
This will set up a local Rancher Manager in HA running on your newly created K3s instance.
helm repo add jetstack https://charts.jetstack.io
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
helm repo update
helm install nginx-ingress nginx-stable/nginx-ingress \
--namespace kube-system \
--set prometheus.create=true \
--set controller.kind=daemonset
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.5.1/cert-manager.crds.yaml
helm install cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace \
--version v1.5.1
kubectl create namespace cattle-system
helm install rancher rancher-stable/rancher \
--namespace cattle-system \
--set hostname=rancher.my.org \
--set replicas=3
- Edit local host file to add the host name you picked above
- open this host name in a browser
- Stand up either an Unbuntu 20.04 lts or a SUSE Leap 15.3 VM.
- See Requirements here RKE 2 Node requirements
- Change the ipaddress and host name your desired values.
- Run the following commands from the Quick Start Guide
curl -sfL https://get.rke2.io | sh -
systemctl enable rke2-server.service
systemctl start rke2-server.service
Copy the Kube config from the racnher CP node
scp [email protected]:/etc/rancher/rke2/rke2.yaml /mnt/c/Users/dylen/.kube/rke2.yaml
Get the CP node token using the command below
cat /var/lib/rancher/rke2/server/node-token
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="agent" sh -
systemctl enable rke2-agent.service
Edit config.yaml to add the worker node to the cluster
mkdir -p /etc/rancher/rke2/
vim /etc/rancher/rke2/config.yaml
server: https://<server>:9345
token: <token from server node>
systemctl start rke2-agent.service