This may be an obvious mistake, but it took me a while to figure out (as I'm new to kubernetes), so I'm posting it here to ease the life of others.
Was getting the following error:
D:\>kubectl get pods
error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1beta1"
The kubectl version was:
D:\>kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.11",
GitCommit:"637c7e288581ee40ab4ca210618a89a555b6e7e9", GitTreeState:"clean", BuildDate:"2018-11-
26T14:38:32Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"windows/amd64"}
error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1beta1"
My kube config file contained:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
I tried changing apiVersion to v1alpha1, v1,etc. None of that helped with different errors along the way.