简体   繁体   中英

Jenkins: Unable to connect to the server. executable aws not found

I run Jenkins on OS X and at one step, I receive the following error,

Constructing AWS CredentialsSetting AWS region us-east-1a 
 [Pipeline] {
[Pipeline] sh
+ echo 'Deploy blue container...'
Deploy blue container...
[Pipeline] sh
+ /usr/local/bin/kubectl apply -f ./blue/blue.yaml
Unable to connect to the server: getting credentials: exec: executable aws 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

The error informs that executable AWS not found. How do I provide it to the Jenkins?

PS:

$ aws --version 
aws-cli/2.2.3 Python/3.8.8 Darwin/19.6.0 exe/x86_64 prompt/off

I delete the minikube and started again. After that this is fine:

minukube delete
minukube start

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM