eks-anywhere icon indicating copy to clipboard operation
eks-anywhere copied to clipboard

Package Installation Fails on workload cluster with IAM Auth kubeconfig

Open abhinavmpandey08 opened this issue 3 years ago • 3 comments

What happened: Installing package controller when using AWS IAM Auth kubeconfig returns the following error:

eksctl anywhere install packagecontroller -f $CLUSTER_NAME.yaml
Error: Unable to connect to the server: getting credentials: exec: executable aws-iam-authenticator not found

It looks like you are trying to use a client-go credential plugin that is not installed.

To learn more about this feature, consult the documentation available at:
      https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins

What you expected to happen: Package installation to work

How to reproduce it (as minimally and precisely as possible): Create a IAM Auth enabled workload cluster and set the KUBECONFIG env var to the IAM Auth kubeconfig

Anything else we need to know?:

Environment:

  • EKS Anywhere Release: v0.11.1
  • EKS Distro Release: v1.23

abhinavmpandey08 avatar Sep 08 '22 17:09 abhinavmpandey08

A couple thoughts here, I think the credentials used for the package controller and aws-iam-authenticator would be different and it may be that aws-iam-authenticator would be installed as a package.

TerryHowe avatar Sep 08 '22 17:09 TerryHowe

Is this a bug or a feature request?

a-cool-train avatar Sep 08 '22 18:09 a-cool-train

Is this a bug or a feature request?

Can be either. I will let you guys decide 😁

abhinavmpandey08 avatar Sep 09 '22 00:09 abhinavmpandey08