我有一个名为“应用程序池”的节点池,其中包含大小为Standard_D2a_v4的节点虚拟机。该节点池设置为“自动缩放”。 解决方案中是否存在我在 azure 中污染整个节点池的地方?限制 pod 在该节点池上进行调度?
最佳答案
仅当您使用 az aks nodepool add 添加节点池时,才可以使用 [--node-taints]
标志设置污点。命令:
Add a node pool to the managed Kubernetes cluster.
az aks nodepool add --cluster-name
--name
--resource-group
[--node-taints]
但是,你cannot add taints to already existing node pool :
You can't change the node taints through CLI after the node pool is created.
this open thread 中正在讨论一个非常相似的主题。 .
因此,目前无法对 AKS 上的现有节点池设置污点。但您可以在向托管集群添加新节点池时设置它们。
关于Azure Kubernetes 服务 : How to setup taint to whole node pool?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66595132/