首页 > 解决方案 > 如何将污点添加到 AWS EKS 节点组?

问题描述

我正在启动并运行一个 AWS EKS 集群。我需要添加带有污点的节点组。这样我就可以在 EKS 中的特定节点组上部署 pod。我可以使用以下命令在 azure AKS 中执行此操作。

az aks nodepool add --resource-group rg-xx --cluster-name aks-xxx --name np1 --node-count 1 --node-vm-size xxx --node-taints key=value:NoSchedule --无需等待

如何在 AWS EKS 中实现相同的目标?

标签: amazon-web-serviceskubernetesdevopsazure-aks

解决方案


您可以使用此示例:https ://eksctl.io/usage/autoscaling/#scaling-up-from-0

nodeGroups:
- name: ng1-public
  ...
  labels:
    my-cool-label: pizza
  taints:
    feaster: "true:NoSchedule"

推荐阅读