harbur / kubernetic

Kubernetic - Supercharge your Kubernetes clusters
https://kubernetic.com
276 stars 26 forks source link

getting credentials: exec: executable aws-iam-authenticator not found #321

Closed miketamis closed 2 years ago

miketamis commented 3 years ago

Im having an issue where I can't connect to AWS EKS cluster.

% which aws-iam-authenticator
/usr/local/bin/aws-iam-authenticator
Screen Shot 2021-07-20 at 3 20 06 AM Screen Shot 2021-07-20 at 3 19 45 AM
dkapanidis commented 3 years ago

What is your Desktop OS? Can you try adding the full path on the .kube/config to see if that solves the issue? Lastly, try to override the default PATH manually to /usr/local/bin to see if that solves the issue.

dkapanidis commented 3 years ago

Also what version of Kubernetic are you currently using?

miketamis commented 3 years ago

Setting the path manually to /usr/local/bin worked, TY.

The default makes it looks, like that's what its going to default to

dkapanidis commented 2 years ago

Fixed on version v3.3.0 (released on 22 Feb).

Explained on blog post here:

Default PATH is now effective

On Linux and Mac machines it is common to see authentication 3rd party binaries such as aws-iam-authenticator be installed under the /usr/local/bin PATH. The PATH on the Preferences page had this value as default, but it was never effective.

image

This solves the problem described here as it now effectively looks in the default PATH value when unset.