Create rancher-cluster.yml file, containing all the nodes, following the official example : https://rancher.com/docs/rancher/v2.x/en/installation/ha/kubernetes-rke/
rke up --config ./rancher-cluster.yml
Install helm and run all prerequisites for installing it: https://rancher.com/docs/rancher/v2.x/en/installation/ha/helm-rancher/
kubectl -n kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller \
--clusterrole=cluster-admin \
--serviceaccount=kube-system:tiller
helm init --service-account tiller
Install rancher
helm install rancher-latest/rancher \
--name rancher \
--namespace cattle-system \
--set hostname=<rancher.url>
Backup & rollback cluster: https://rancher.com/docs/rke/latest/en/etcd-snapshots/
rke etcd snapshot-save --config cluster.yml --name snapshot-name
rke etcd snapshot-restore --config cluster.yml --name snapshot-name
Additional step, fix rancher ingress route with tls.source=letsEncrypt by running:
kubectl edit ingress/<rancher.ingress> -n cattle-system