Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws eks update-kubeconfig invalid apiVersion while using Github linux runners #6921

Closed
kyandaks opened this issue May 5, 2022 · 6 comments
Closed
Assignees
Labels
bug This issue is a bug. duplicate This issue is a duplicate. eks eks-kubeconfig

Comments

@kyandaks
Copy link

kyandaks commented May 5, 2022

Describe the bug

aws eks update-kubeconfig --name ${EKS_CLUSTER_NAME} --region ${REGION}
The above command executes successfully in the GitHub Action workflow but when I run
kubectl apply -f manifest.yml
I get the error below:
error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

Expected Behavior

Usually it would start the deployment to the EKS cluster

Current Behavior

I am currently getting the error below:
error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

Upon checking the kubectl version --client --output=yaml, it is on version 1.24.0.

Reproduction Steps

The issue opened here suggested that one should downgrade kubectl from 1.24.0 as seen here - #6920 but this is a bit hard with GitHub hosted runners as OS updates are managed by them

Possible Solution

When I reached out to AWS support, the engineer suggested that he is going to accelerate this to the AWS EKS Service team. For reference - Case ID 10018756571

Additional Information/Context

No response

CLI version used

the version is managed by the GitHub team

Environment details (OS name and version, etc.)

Linux - Ubuntu 20.04

@kyandaks kyandaks added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels May 5, 2022
@beeshalrizal
Copy link

same here

@kyandaks
Copy link
Author

kyandaks commented May 5, 2022

For now downgrading the kubectl version from 1.24.0 is the best work around.
With GitHub runners, this action by Azure comes in handy - https://github.com/Azure/setup-kubectl

  • uses: azure/[email protected]
    with:
    version: 'v1.23.6' # default is latest stable
    id: install

@kyandaks
Copy link
Author

kyandaks commented May 5, 2022

same here

Use solution I have posted above meanwhile.
Run it after setting up kubeconfig
aws eks update-kubeconfig --name ${EKS_CLUSTER_NAME} --region ${REGION}

@tim-finnigan tim-finnigan self-assigned this May 5, 2022
@tim-finnigan tim-finnigan added duplicate This issue is a duplicate. eks-kubeconfig eks and removed needs-triage This issue or PR still needs to be triaged. labels May 5, 2022
@tim-finnigan
Copy link
Contributor

I'm going to resolve this as a duplicate of #6920. Will post an update there shortly.

@github-actions
Copy link

github-actions bot commented May 5, 2022

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

@singaravelanpalani
Copy link

sudo apt install kubectl=1.23.6-00

It's broken with kubectl version 1.24. Downgrade to 1.23.6 will fix the issue for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. duplicate This issue is a duplicate. eks eks-kubeconfig
Projects
None yet
Development

No branches or pull requests

4 participants