小编Lou*_*III的帖子

Kubectl 命令抛出错误:无法连接到服务器:获取凭据:exec:退出状态 2

我正在进行 EKS/Kubectl 的实验室设置,在完成集群构建后,我运行以下命令:

> kubectl get node

And I get the following error:
Unable to connect to the server: getting credentials: exec: exit status 2
Run Code Online (Sandbox Code Playgroud)

此外,我确信这是一个配置问题,

kubectl version
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                         | describe-update                         
list-clusters                            | list-updates                            
update-cluster-config                    | update-cluster-version                  
update-kubeconfig                        | wait                                    
help                                    
Client Version: version.Info{Major:"1", …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services kubernetes kubectl amazon-eks

15
推荐指数
2
解决办法
9万
查看次数