cuddly-night-88590
11/09/2022, 3:27 PMfast-garage-66093
11/09/2022, 5:29 PMkubectl
installed by Rancher Desktop is actually kuberlr
, as you already noticed. It will automatically download and use a compatible version of kubectl
as the backend: it just checks the kube version of the apiserver, and then `exec`s to the compatible kubectl
to perform the actual work.kubectl version
and you should see that the client version closely matches the server version: it should never be more than one minor version behind or ahead of the server version, as that is the upstream compatibility guarantee.cuddly-night-88590
11/09/2022, 5:44 PMerror: exec plugin: invalid apiVersion "<http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>"
I tried this manually via the kubectl binaries in ~/.kuberlr/darwin-amd64/kubectlx.x.x
kubectl 1.24 gets the above error when trying to hit this cluster. I’m guessing kuberlr is taking the latest compatible version which should be 1.24 if the server is 1.23, so that makes sense if 1.24 is selected.fast-garage-66093
11/09/2022, 5:52 PMkubectl
binaries in the kuberlr cache are from upstream releases, it wouldn't seem wrong to ask EKS support why this doesn't work. I have no idea if they respond to this or not though.kuberlr
needs to have a configurable version match policy, to require e.g. an exact match of the minor version.cuddly-night-88590
11/09/2022, 5:54 PMfast-garage-66093
11/09/2022, 5:55 PMcuddly-night-88590
11/09/2022, 6:17 PMfast-garage-66093
11/09/2022, 6:47 PM