title: kubectl invalid apiVersion
body: <p>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.</p>
  
  <p>Was getting the following error:</p>
  
  <pre><code>D:\&gt;kubectl get pods
  error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1beta1"
  </code></pre>
  
  <p>The kubectl version was:</p>
  
  <pre><code>D:\&gt;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"
  </code></pre>
  
  <p>My kube config file contained:</p>
  
  <pre><code>exec:
    apiVersion: client.authentication.k8s.io/v1beta1
  </code></pre>
  
  <p>I tried changing apiVersion to v1alpha1, v1,etc.  None of that helped with different errors along the way.</p>