The commands below will require root access. Suggesting using
sudo -s
to run the following commands
curl -sfL https://get.rancher.io | sh -
systemctl enable --now rancherd-server.service
journalctl -eu rancherd-server -f
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml PATH=$PATH:/var/lib/rancher/rke2/bin
kubectl get pods -n cattle-system
rancherd reset-admin
Follow the url and use the password provided from the command above and login to Rancher