Problem
I've got error to run kubectl command with aws-iam-authenticator not found
(venv) ➜ k8s git:(develop) ✗ kubectl get pod
Unable to connect to the server: getting credentials: exec: exec: "aws-iam-authenticator": executable file not found in $PATH
Unable to connect to the server: getting credentials: exec: exec: "aws-iam-authenticator": executable file not found in $PATH
Solutions
Installation tool on OSX Mojave
brew install aws-iam-authenticator
Example of installation
(venv) ➜ k8s git:(develop) ✗ brew install aws-iam-authenticator Updating Homebrew... ==> Auto-updated Homebrew! Updated 3 taps (homebrew/core, homebrew/cask and caskroom/cask). ==> New Formulae .. ==> Downloading https://homebrew.bintray.com/bottles/
aws-iam-authenticator-0.4.0.mojave.bottle.tar.gz ==> Downloading from https://akamai.bintray.com/52... ######################################################################## 100.0% ==> Pouring aws-iam-authenticator-0.4.0.mojave.bottle.tar.gz 🍺 /usr/local/Cellar/aws-iam-authenticator/0.4.0: 5 files, 31.1MB
沒有留言:
張貼留言