Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure上Kubernetes群集自动缩放器存在问题_Azure_Kubernetes_Autoscaling - Fatal编程技术网

Azure上Kubernetes群集自动缩放器存在问题

Azure上Kubernetes群集自动缩放器存在问题,azure,kubernetes,autoscaling,Azure,Kubernetes,Autoscaling,我有kubernetes群集在Azure虚拟机规模集上运行。我使用Kubernetes Cluster Autoscaler来缩放节点数。如果我将限制从1设置为10,它可以正常工作,但在一种特定情况下,当我将限制从0设置为时会出现问题: 当节点数已缩放为0时,此操作后,带群集自动缩放的pod将重新启动。然后我想在这个VMS上运行pod(带有nodeSelector的pod-agentpool:memory),但当实例数缩放为0时,autoscaler似乎无法从VMS读取适当的标签 根据文档,我将

我有kubernetes群集在Azure虚拟机规模集上运行。我使用Kubernetes Cluster Autoscaler来缩放节点数。如果我将限制从1设置为10,它可以正常工作,但在一种特定情况下,当我将限制从0设置为时会出现问题:

当节点数已缩放为0时,此操作后,带群集自动缩放的pod将重新启动。然后我想在这个VMS上运行pod(带有nodeSelector的pod-agentpool:memory),但当实例数缩放为0时,autoscaler似乎无法从VMS读取适当的标签

根据文档,我将以下标记添加到vms
k8s.io\u cluster-autoscaler\u node-template\u label\u agentpool:memory

我有来自autoscaler吊舱的日志:

GeneralPredicates predicate mismatch, reason: node(s) didn't match node selector