如何运行 Auto Scaling 多次?

How to run AutoScalling more then one time?

我尝试在k8s中用autoscalar进程创建新节点

如果我有 1 个节点然后创建新节点,它运行良好

pod triggered scale-up: [{shoot--system-z1 1->2 (max: 20)}]

当我第二次尝试这样做时,我有 2 个节点,它尝试创建第 3 个节点,然后我得到了一个错误

pod didn't trigger scale-up (it wouldn't fit if a new node is added)

这是 autosclar 的日志

{"log":"Pod xxxx can't be scheduled on shoot-system-z1, predicate checking error: node(s) didn't match node selector; predicateName=NodeAffinity; reasons: node(s) didn't match node
 selector; debugInfo=","pid":"1","severity":"I","source":"scale_up.go:288"}

你能告诉我需要检查什么吗?

您尝试部署的最终 Pod 中的一条 NodeAffinity 规则似乎与您的任何节点都不匹配,如果自动缩放器添加额外的节点,该规则也将 不匹配。您可能想要删除该规则。