astefanutti / kubebox

⎈❏ Terminal and Web console for Kubernetes
http://astefanutti.github.io/kubebox
MIT License
2.14k stars 142 forks source link

ENOENT Error with AWS EKS #60

Closed FriedCircuits closed 4 years ago

FriedCircuits commented 4 years ago

I am trying to use kubebox with AWS EKS. I updated to 0.6.0 which supports the exec auth. I have been unsuccessful in connecting due to the following error:

spawn aws-iam-authenticator ENOENT

Pasting in a token doesn't seem to work either.

Any ideas? What am I missing?

astefanutti commented 4 years ago

It seems Kubebox is not able to execute aws-iam-authenticator. Could you try running:

$ which aws-iam-authenticator

Could you provide your kubeconfig details with the auth provider section as well.

FriedCircuits commented 4 years ago

MacOS: /usr/local/bin/aws-iam-authenticator

contexts:
- context:
    cluster: eks-cluster
    user: aws
  name: aws
current-context: aws
kind: Config
preferences: {}
users:
- name: aws
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      command: aws-iam-authenticator
      args:
        - "token"
        - "-i"
        - "eks-cluster"
      env:
      - name: "AWS_PROFILE"
        value: "default"
camilorivera commented 4 years ago

Im presenting the same issue.

johnpoth commented 4 years ago

There was an issue with setting environment variables see #63

You can workaround this by specifying the path to the executable in your kube config:

command: /usr/local/bin/aws-iam-authenticator

Thanks!

FriedCircuits commented 4 years ago

Thanks everyone. Until there is a release I was able to get it to work with the workaround by specifying the full path for aws-iam-authenticator and aws binaries.