【发布时间】:2020-09-30 12:24:49
【问题描述】:
我将Kubernetes autoscaler 用于AWS。我已经使用以下命令部署了它:
command:
- ./cluster-autoscaler
- --v=4
- --stderrthreshold=info
- --cloud-provider=aws
- --skip-nodes-with-local-storage=false
- --nodes=1:10:nodes.k8s-1-17.dev.platform
但是,自动缩放器似乎无法启动缩减。日志显示它找到了一个未使用的节点,但没有缩小它并且没有给我一个错误(显示“无节点组配置”的节点是主节点)。
I0610 22:09:37.164102 1 static_autoscaler.go:147] Starting main loop
I0610 22:09:37.164462 1 utils.go:471] Removing autoscaler soft taint when creating template from node ip-10-141-10-176.ec2.internal
I0610 22:09:37.164805 1 utils.go:626] No pod using affinity / antiaffinity found in cluster, disabling affinity predicate for this loop
I0610 22:09:37.164823 1 static_autoscaler.go:303] Filtering out schedulables
I0610 22:09:37.165083 1 static_autoscaler.go:320] No schedulable pods
I0610 22:09:37.165106 1 static_autoscaler.go:328] No unschedulable pods
I0610 22:09:37.165123 1 static_autoscaler.go:375] Calculating unneeded nodes
I0610 22:09:37.165141 1 utils.go:574] Skipping ip-10-141-12-194.ec2.internal - no node group config
I0610 22:09:37.165155 1 utils.go:574] Skipping ip-10-141-15-159.ec2.internal - no node group config
I0610 22:09:37.165167 1 utils.go:574] Skipping ip-10-141-11-28.ec2.internal - no node group config
I0610 22:09:37.165181 1 utils.go:574] Skipping ip-10-141-13-239.ec2.internal - no node group config
I0610 22:09:37.165197 1 utils.go:574] Skipping ip-10-141-10-69.ec2.internal - no node group config
I0610 22:09:37.165378 1 scale_down.go:379] Scale-down calculation: ignoring 4 nodes unremovable in the last 5m0s
I0610 22:09:37.165397 1 scale_down.go:410] Node ip-10-141-10-176.ec2.internal - utilization 0.023750
I0610 22:09:37.165692 1 cluster.go:90] Fast evaluation: ip-10-141-10-176.ec2.internal for removal
I0610 22:09:37.166115 1 cluster.go:225] Pod metrics-storage/querier-6bdfd7c6cf-wm7r8 can be moved to ip-10-141-13-253.ec2.internal
I0610 22:09:37.166227 1 cluster.go:225] Pod metrics-storage/querier-75588cb7dc-cwqpv can be moved to ip-10-141-12-116.ec2.internal
I0610 22:09:37.166398 1 cluster.go:121] Fast evaluation: node ip-10-141-10-176.ec2.internal may be removed
I0610 22:09:37.166553 1 static_autoscaler.go:391] ip-10-141-10-176.ec2.internal is unneeded since 2020-06-10 22:06:55.528567955 +0000 UTC m=+1306.007780301 duration 2m41.635504026s
I0610 22:09:37.166608 1 static_autoscaler.go:402] Scale down status: unneededOnly=true lastScaleUpTime=2020-06-10 21:45:31.739421421 +0000 UTC m=+22.218633767 lastScaleDownDeleteTime=2020-06-10 21:45:31.739421531 +0000 UTC m=+22.218633877 lastScaleDownFailTime=2020-06-10 22:06:44.128044684 +0000 UTC m=+1294.607257070 scaleDownForbidden=false isDeleteInProgress=false
为什么自动缩放器不缩小节点?
【问题讨论】:
-
您有任何 pod 中断预算吗?
-
您可以尝试使用此链接使用自动发现吗github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/…
标签: amazon-web-services kubernetes autoscaling