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
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 version v0.1.16
INFO[0000] Generating images list for version [v1.11.6-rancher1-1]:
v1.11.6-rancher1
rke version v0.2.0-rc5
v1.13.1-rancher1
or get the list of the used version of componets like etcd ... without using the awk cmd:
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
This should be fixed in https://github.com/rancher/rancher/issues/20781 / https://github.com/rancher/rke/pull/1590
Most helpful comment
Yeah, I'm happy enough with the following: