DEV Community

Memphis.dev team
Memphis.dev team

Posted on

3 2

Fix: invalid apiVersion “client.authentication.k8s.io/v1alpha1”

aws + k8s

I recently encountered this error while trying to run ‘kubectl’ commands over our AWS EKS cluster, not sure if it's shared by more k8s vendors.

In short, you are using an incompatible ‘AWS CLI’ version with your current AWS EKS version.

To fix it — Update your ‘AWS CLI’

Installing or updating the latest version of the AWS CLI
This topic describes how to install or update the latest release of the AWS Command Line Interface (AWS CLI) on…
docs.aws.amazon.com


For Linux x86 (64-bit)

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && sudo ./aws/install

For MacOS

curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /

For Window

C:\> msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi

Hope it helped. Cheers.

Thanks to Yaniv Ben-hemo for writing & Idan Asulin For the QA.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay