koslib / helm-eks-action

The simplest Github Action for executing Helm commands on EKS - cluster authentication included
MIT License
59 stars 61 forks source link

Problem with Deploy to EKS 1.17 #18

Closed luisvillalobossalgado1987 closed 2 years ago

luisvillalobossalgado1987 commented 2 years ago

Hello everyone, I am having the following error:

Error: Kubernetes cluster unreachable: Get "https://37960ADD73B948642C98F7AE96AA2D50.gr7.***.eks.amazonaws.com/version?timeout=32s": getting credentials: exec plugin is configured to use API version client.authentication.k8s.io/v1alpha1, plugin returned version client.authentication.k8s.io/v1beta1

I attach my kubeconfig

Please your help.

Regards config-dev.txt

benjamin658 commented 2 years ago

It seems that the aws-cli update the Kubernetes client authentication API version.

https://github.com/aws/aws-cli/blob/develop/CHANGELOG.rst#1209

benjamin658 commented 2 years ago

The workaround is to lock the awscli version to 1.20.8.

https://github.com/koslib/helm-eks-action/blob/c65d80e9ce22d2a08a321522700dcfd8e3ffeb25/Dockerfile#L6

RUN pip install 'awscli==1.20.8'
koslib commented 2 years ago

Hey all, thanks for bringing this up!

I'll take a look later in the week and issue a new version. From my PoV I see two options:

PRs are also welcome!

plorencrstit commented 2 years ago

@benjamin658 can you create a pull request as a hotfix?

hdiaz-nectia commented 2 years ago

Hi @koslib, Can you create a hotfix with the quicker fix ?

imranq2 commented 2 years ago

Here's a PR if someone wants to accept and merge: https://github.com/koslib/helm-eks-action/pull/20

benjamin658 commented 2 years ago

@imranq2 @plorencrstit, I forked a repository and bump cli versions.

https://github.com/BeeInventor/helm-eks-action

You can use it before the main repository being upgraded.

benjamin658 commented 2 years ago

Hi @koslib, I created a PR, and it works fine in our CD pipeline.

benjamin658 commented 2 years ago

Hey all, thanks for bringing this up!

I'll take a look later in the week and issue a new version. From my PoV I see two options:

  • lock awscli to 1.20.8 (quicker fix)
  • allow the user to select the kubectl version they want (harder but covers all cases)

PRs are also welcome!

In my personal perspective, the action can separate into different tags to support multiple Kubernetes versions. Since there are many kubectl versions that address specific Kubernetes versions.

https://docs.aws.amazon.com/zh_tw/eks/latest/userguide/install-kubectl.html

koslib commented 2 years ago

@benjamin658 I've merged your PR, thanks for the contribution too! The new version is out with tag v1.9.0.

Closing this issue and monitoring it. A proper longer-term solution will be available at some point since this crisis is averted for now.