https://rancher.com/ logo
Title
t

tall-doctor-28108

09/26/2022, 1:04 PM
I saw that there are different versions and branches for the RKE2 install.sh script: https://github.com/rancher/rke2/blob/release-1.21/install.sh Do I have to use the script from the branch of my current k8s version, or can I just use the latest script from the master branch for all versions?
g

gray-lawyer-73831

09/26/2022, 7:33 PM
You can generally use the latest script from the master branch for all versions. That is validated with all the current releases. Also, that script is available at get.rke2.io for extra ease of use 🙂 I will add that occasionally there are updates made to the install script that aren’t checked for backwards-compatibility on versions that are out of circulation, so for <= 1.21 it is probably safest to use the install scripts from those versions directly like the one you’ve linked
t

tall-doctor-28108

09/27/2022, 7:27 AM
Hey Max! Thanks for your reply and clearing that up 🙂. Now I'll know how to handle this in the future.