Error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

image
Hi Guys, recently I’m facing this issue in the azure DevOps release pipeline. Not sure how to fix this.

There is a current issue opened on the aws cli.

Temporary solutions and examples are available on the github issue:
aws eks update-kubeconfig invalid apiVersion

1 Like

Using kubectl 1.21.9 fixed it for me, with asdf:

asdf plugin-add kubectl https://github.com/asdf-community/asdf-kubectl.git
asdf install kubectl 1.21.9

And I would recommend having a .tools-versions file with:

kubectl 1.21.9
1 Like