尝试在Windows-10上使用awscli,按照指示来安装巧克力、eksctl、awscli身份验证器等。我有python 3.7和升级了awscli等等。
eksctl v0.6.0 is the latest version available based on your source(s).
aws-iam-authenticator v0.4.0 is the latest version available based on your source(s).
但是说明说:eksctl GitTag版本至少应该是0.7.0。如果没有,请检查终端输出是否存在安装或升级错误。但我的eksctl版本是version.Info{BuiltAt:"", GitCommit:"", GitTag:"0.6.0"}。控制台或chocolatey.log不显示任何错误或任何有意义的内容。
是的,这个版本0.6.0最终不工作,没有显示错误,但不工作。
任何想法
发布于 2019-10-10 15:20:02
您可以手动尝试安装aws认证器。
安装*
aws-iam-authenticator**
curl -o aws-iam-authenticator.exe https://amazon-eks.s3-us-west-2.amazonaws.com/1.14.6/2019-08-22/bin/windows/amd64/aws-iam-authenticator.exe- Download the SHA-256 sum for your system.curl -o aws-iam-authenticator.sha256 https://amazon-eks.s3-us-west-2.amazonaws.com/1.14.6/2019-08-22/bin/windows/amd64/aws-iam-authenticator.exe.sha256
-检查下载的二进制文件的SHA-256和。
Get-FileHash aws-iam-authenticator.exe
-将命令输出中生成的SHA-256和与下载的SHA-256文件进行比较。两者应该匹配,尽管PowerShell输出将是大写的。
PATH中的文件夹中。如果您的路径中有一个用于命令行实用程序的现有目录,请将二进制文件复制到该目录。否则,完成以下步骤。-
1. Create a new directory for your command line binaries, such as `C:\bin`.
-
1. Copy the `aws-iam-authenticator.exe` binary to your new directory.
-
1. Edit your user or system PATH environment variable to add the new directory to your PATH.
-
1. Close your PowerShell terminal and open a new one to pick up the new PATH variable.
aws-iam-authenticator二进制文件是否工作。
aws-iam-authenticator help之后,再尝试使用chocolatey upgrade -y eksctl。
eksctl上的Installtion文档说:
您需要配置API凭据。适用于AWS、CLI或其他工具(kops、Terraform等)的工具应该足够了。您可以使用文件或环境变量。有关更多信息,请阅读AWS文件。 您还需要Kubernetes的AWS IAM认证器命令(
aws-iam-authenticator或aws eks get-token(可在1.16.156版或更高版本的AWS中获得)。
发布于 2019-10-22 22:55:39
通过将AWS CLI配置到支持EKS的正确区域即区域,解决了此问题。目前,它在美国被支持-西部-2,美国-东-1和美国-东-2。一旦我将CLI重新配置为us-west-2,然后升级了eksctl brew upgrade eksctl && brew link --overwrite eksctl。然后我得到了正确的0.7.0版本的eksctl。
文档没有这么说,有点道理,但很难学到。(由于其他错误,我先前重新配置了CLI,但之后没有升级eksctl )。
重要的是,没有正确的0.7.0版本,事情就行不通了。此外,您必须对控制台和CLI使用相同的用户。所有这些细微之处都必须牢记,这样才能奏效。
https://stackoverflow.com/questions/58324971
复制相似问题