我正在尝试使用下面提到的 CLI 更新 kubeconfig 文件
aws eks update-kubeconfig --name EKS_cluster
它给了我这个错误
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument operation: Invalid choice, valid choices are:
create-cluster | delete-cluster
describe-cluster | list-clusters
help
我使用的 was cli 版本是
aws-cli/1.15.58 Python/3.5.2 Linux/5.3.0-1030-aws botocore/1.10.57
有人可以帮我解决这个问题吗?
最佳答案
来自为 Amazon EKS 创建 kubeconfig 的文档 here
Ensure that you have version 1.16.156 or later of the AWS CLI installed.
显然这是因为旧版本的 CLI (1.15.58)。升级 CLI 应该可以解决这个问题。
现在 CLI 已经有了版本 2,您可以从 here 安装它。
关于amazon-web-services - AWS CLI : update-kubeconfig not working as expected,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63116765/