gpt4 book ai didi

amazon-web-services - `aws eks list-nodegroups`和 `eksctl get nodegroups`结果不一致

转载 作者:行者123 更新时间:2023-12-02 12:09:54 25 4
gpt4 key购买 nike

eksctl  get nodegroups --cluster=cluster-name --profile=dev
aws eks list-nodegroups --cluster=cluster-name --profile=dev

第一个结果是正确的
第二个结果是空气如下:

{ 
"nodegroups": []
}

我用这两个命令来获取集群的nodegroup,但是发现结果并不一致。
我使用的配置文件是相同的 ~/.aws/config。
命令检查了 cluster_name。出来,这两个命令可以正确检测cluster但是不能检测nodegroup
提前致谢

最佳答案

根据 eksctl documentation :

Listing nodegroups

To list the details about a nodegroup or all of the nodegroups, use:

eksctl get nodegroup --cluster=<clusterName> [--name=<nodegroupName>]

Nodegroup immutability

By design, nodegroups are immutable. This means that if you need tochange something (other than scaling) like the AMI or the instancetype of a nodegroup, you would need to create a new nodegroup with thedesired changes, move the load and delete the old one. CheckDeleting anddraining.

对于 list-nodegroup来自 AWS documentation

Lists the Amazon EKS managed node groups associated with the specified cluster in your AWS account in the specified Region. Self-managed node groups are not listed.

如您所见,这些命令存在差异,例如第二个命令中未列出 self 管理的节点组。

关于amazon-web-services - `aws eks list-nodegroups`和 `eksctl get nodegroups`结果不一致,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64059038/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com