【问题标题】:Jenkins: Unable to connect to the server. executable aws not found詹金斯:无法连接到服务器。找不到可执行的 aws
【发布时间】: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


【解决方案1】:

我删除了 minikube 并重新开始。之后就可以了:

minukube delete
minukube start

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-10-20
    • 1970-01-01
    • 2014-04-22
    • 2015-11-03
    • 1970-01-01
    • 2014-02-28
    • 2013-04-28
    • 1970-01-01
    相关资源
    最近更新 更多