rke2-uninstall.sh
subscription-manager repos --enable=rhel-7-server-extras-rpms
git clone https://github.com/brooksphilip/cdf2-rke2-install.git
chmod +x first_master_script.sh
chmod +x other_master_script.sh
chmod +x install_rancher.sh
rke2_token=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32; echo)
./first_master_script.sh $rke2_token
echo $rke2_token
other_master_script.sh <IP_or_fqdn_of_first_master> <token_from_above>
kubectl get nodes
lets first make the script executable.
chmox +x install_rancher.sh
take note of all the cert paths. you will need a concatonated ca chain pem file if you are using a private CA. All these files need to be present on the machine you are running the script.
Install Rancher
./install_rancher.sh