Skip to content

Get the list of available Kubernetes versions for RKE

Article Number: 000021088

Environment

  • RKE 1.6+
  • Rancher v2.9.x+

Situation

One wants to install an RKE cluster without the default version of RKE or the Kubernetes version is not listed on the Rancher UI

Resolution

1. For RKE CLI:
Through the RKE CLI, one might get the available versions of Kubernetes for that release:

$ rke config --list-version --all
v1.30.2-rancher1-1
v1.28.11-rancher1-1
v1.29.6-rancher1-1
v1.27.15-rancher1-1

$ rke version
rke version
INFO[0000] Running RKE version: v1.6.0 

Without the flag --all it will display the default version of the Kubernetes to be installed if the version is not specified on the cluster.yml. Documentation on how to do it can be found here 

2. For RKE Kubernetes versions available on Rancher, check the RKE k8s System Images resource:

kubectl get rkek8ssystemimages.management.cattle.io -n cattle-global-data