我在OS X上运行Jenkins,在一个步骤中,我收到以下错误,
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
错误提示找不到可执行的AWS。我怎么把它提供给詹金斯?
PS:
$ aws --version
aws-cli/2.2.3 Python/3.8.8 Darwin/19.6.0 exe/x86_64 prompt/off
我删除minikube并重新启动。之后就可以了:
minukube delete
minukube start