繁体   English   中英

Kubernetes集群自动缩放器不起作用

[英]Kubernetes cluster-autoscaler not working

我已经为aws kube集群部署了cluster-autoscaler,现在它失败并出现以下错误。

W0411 03:07:37.393124 1 clusterstate.go:514] Failed to get nodegroup for dev-k8s-node-asg-230-i-089e4d2f163533989: Wrong id: expected format aws:////, got
W0411 03:07:37.393145 1 clusterstate.go:514] Failed to get nodegroup for stg-k8s-w2-npe-master-3: Wrong id: expected format aws:////, got
W0411 03:07:37.393152 1 clusterstate.go:514] Failed to get nodegroup for dev-k8s-node-prm-1: Wrong id: expected format aws:////, got
W0411 03:07:37.393158 1 clusterstate.go:514] Failed to get nodegroup for dev-k8s-node-asg-230-i-0eb3341fce85be39c: Wrong id: expected format aws:////, got
W0411 03:07:37.393164 1 clusterstate.go:514] Failed to get nodegroup for dev-k8s-node-asg-230-i-091d1a037311d5daf: Wrong id: expected format aws:////, got
W0411 03:07:37.393169 1 clusterstate.go:514] Failed to get nodegroup for dev-k8s-node-asg-230-i-041dd54f2baaa4553: Wrong id: expected format aws:////, got
W0411 03:07:37.393188 1 clusterstate.go:560] Readiness for node group dev-k8s-node-asg-230 not found
W0411 03:07:37.393203 1 clusterstate.go:560] Readiness for node group stg-k8s-agent-w2-asg not found

autoscaler-configuration命令:

./cluster-autoscaler \
  --v=6 \
  --stderrthreshold=info \
  --cloud-provider=aws \
  --skip-nodes-with-local-storage=false \
  --expander=least-waste \
  --node-group-auto-discovery=asg:tag=k8s.io/cluster-autoscaler/enabled,kubernetes.io/cluster/dev 

我在自动缩放组中添加了以下标签,有人可以帮助我了解此错误。

您可以尝试创建cloud-config.conf并在其中插入KubernetesClusterTag,KubernetesClusterIDZone属性。 请确认

--cloud-provider=aws 

存在于每个节点和kubelet命令行中,如果

--cloud-config=

指向cloud_config.conf的正确路径。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM