Rke: Provide a rke command to display all the supported Kubernetes versions

Created on 8 Feb 2019  路  7Comments  路  Source: rancher/rke

RKE version: : v0.2.0-rc5

Currently there is no easy command to find all the supported Kubernetes versions in RKE.
This would be very useful command for users

kinenhancement

Most helpful comment

Yeah, I'm happy enough with the following:

# list default images for all services
rke config --system-images

# list all available kube versions
rke config --system-images --version -

# list default images for all kube versions
rke config --system-images --all

All 7 comments

maybe is this what you looking for?

% rke config --system-images --version - 
WARN[0000] This is not an officially supported version (v0.2.0-rc5) of RKE. Please download the latest official release at https://github.com/rancher/rke/releases/latest 
FATA[0000] k8s version is not supported, supported versions are: [v1.11.5-rancher1-1 v1.11.6-rancher1-1 v1.12.5-rancher1-1 v1.13.1-rancher1-1 v1.12.0-rancher1-1 v1.12.4-rancher1-1 v1.11.1-rancher1-1 v1.11.2-rancher1-2 v1.12.1-rancher1-1 v1.12.3-rancher1-1 v1.11.2-rancher1-1 v1.11.3-rancher1-1] 

Would also be nice to show what's the default in the list. Others may want to see versions/defaults of all the images (ie: etcd, cni plugins, etc)

Would also be nice to show what's the default in the list. Others may want to see versions/defaults of all the images (ie: etcd, cni plugins, etc)

https://github.com/rancher/types/blob/master/apis/management.cattle.io/v3/k8s_defaults.go

I'm aware of that link but when dealing with binary files it's hard to know what was used at the time etc.

I know this is only like a workaround, but usable.
for the default kubernetes version of an rke release, get the current system-images tag of the hyperkube image, like

```

rke -v

rke version v0.1.16

rke config --system-images | awk -F':' '/hyperkube/ { print $2 }'

INFO[0000] Generating images list for version [v1.11.6-rancher1-1]:
v1.11.6-rancher1

rke-latest -v

rke version v0.2.0-rc5

rke-latest config --system-images | awk -F':' '/hyperkube/ { print $2 }'

v1.13.1-rancher1

or get the list of the used version of componets like etcd ... without using the awk cmd:

rke config --system-images

INFO[0000] Generating images list for version [v1.11.6-rancher1-1]:
rancher/coreos-etcd:v3.2.18
rancher/rke-tools:v0.1.15
rancher/k8s-dns-kube-dns-amd64:1.14.10
rancher/k8s-dns-dnsmasq-nanny-amd64:1.14.10
rancher/k8s-dns-sidecar-amd64:1.14.10
rancher/cluster-proportional-autoscaler-amd64:1.0.0
rancher/hyperkube:v1.11.6-rancher1
rancher/coreos-flannel:v0.10.0
rancher/coreos-flannel-cni:v0.3.0
rancher/calico-node:v3.1.3
rancher/calico-cni:v3.1.3
rancher/calico-ctl:v2.0.0
weaveworks/weave-kube:2.1.2
weaveworks/weave-npc:2.1.2
rancher/pause-amd64:3.1
rancher/nginx-ingress-controller:0.16.2-rancher1
rancher/nginx-ingress-controller-defaultbackend:1.4
rancher/metrics-server-amd64:v0.2.1
````

Yeah, I'm happy enough with the following:

# list default images for all services
rke config --system-images

# list all available kube versions
rke config --system-images --version -

# list default images for all kube versions
rke config --system-images --all
Was this page helpful?
0 / 5 - 0 ratings

Related issues

danielbjornadal picture danielbjornadal  路  23Comments

de13 picture de13  路  32Comments

piwi91 picture piwi91  路  25Comments

HighwayofLife picture HighwayofLife  路  29Comments

pasikarkkainen picture pasikarkkainen  路  16Comments