我正在进行 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)