【发布时间】:2021-12-09 20:02:49
【问题描述】:
我在 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。如何将其提供给 Jenkins?
PS:
$ aws --version
aws-cli/2.2.3 Python/3.8.8 Darwin/19.6.0 exe/x86_64 prompt/off
【问题讨论】:
-
您是否将 AWS 凭证导出为环境变量或类似的东西? kubeconfig 呢?如果您添加该部分的 Jenkins 配置,将会很有帮助。
-
你试过
brew install awscli吗? -
@jordanm 没有安装 awscli,所以我会安装它并再次尝试看看是否可行。
-
@JuanFontes 我可以对 Kubeconfig 做些什么?
标签: amazon-web-services jenkins kubernetes