It also breaks when you install RKE2 with the RPM, and then use Rancher to upgrade RKE2. You end up with the installed RPM being one version, but the running RKE2 version being different.
Perhaps what is needed is logic to install once with the RPM, then disable any further updates via the RPM repos. I have been doing this on my clusters by disabling the yum repo (enabled=0). All updates are then handled via Rancher.
It also breaks when you install RKE2 with the RPM, and then use Rancher to upgrade RKE2. You end up with the installed RPM being one version, but the running RKE2 version being different.
Perhaps what is needed is logic to install once with the RPM, then disable any further updates via the RPM repos. I have been doing this on my clusters by disabling the yum repo (enabled=0). All updates are then handled via Rancher.