Azure Kubernetes 服务 : How to setup taint to whole node pool?

标签 azure kubernetes azure-aks

我有一个名为“应用程序池”的节点池,其中包含大小为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/

相关文章:

azure - 在 Azure 数据工厂的查找阶段在 SQL 查询内传递动态内容

spring-boot - kubernetes中的Spring Boot服务始终以HTTP状态400响应

docker - 在Ubuntu中启动minikube会删除本地docker镜像

kubernetes - 如何在 AKS 上使用 kubectl 设置 kube-proxy 设置

azure - 适用于 Azure Service Fabric 无状态 Web API 应用程序的 Swagger

google-app-engine - 如何使用 REST API 从 Java/GAE 向 Azure 通知中心发送消息

azure - 通过 Web api 对 Azure AD 中的用户进行身份验证?

Kubernetes:Prometheus 上下文期限超过错误

azure - 是否可以从 Azure 数据工厂触发 AKS Pod

azure devops 发布管道在 kubectl apply 上不断失败?