<p>I am configuring an EKS cluster using terraform in a private subnet and trying to access it using a VPN in a public subnet. When I configured it, it works fine but now when I run kubectl get pods or kubectl get svc, it is throwing an error:</p>
<p><code>error: exec plugin: invalid apiVersion &quot;client.authentication.k8s.io/v1alpha1&quot;</code></p>
<p>I don't know why it is happening. Please reply if you the solution.</p>
<p>Thanks</p>

Piyush Mittal
<p>It's broken with <code>kubectl</code> version <code>1.24</code>. Downgrade to <code>1.23.6</code> will fix the issue for now</p>
<pre><code>sudo apt install kubectl=1.23.6-00
</code></pre>
