amazon-web-services - 如何将污点添加到 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 中实现相同的目标?
解决方案
您可以使用此示例:https ://eksctl.io/usage/autoscaling/#scaling-up-from-0
nodeGroups:
- name: ng1-public
...
labels:
my-cool-label: pizza
taints:
feaster: "true:NoSchedule"
推荐阅读
- javascript - Express 不向浏览器发送 cookie?(它派邮递员)
- r-markdown - \noopsort{} 在 R 降价 bibtex 参考书目 @preamble
- python - 如何将 python 函数添加到 HTML 中?
- spring - Spring boot-keycloak 硬编码角色
- pine-script - 如果满足条件,如何停止脚本?
- html - 延迟表单的操作以在提交之前设法从快递服务器获取答案
- angular - Identityserver4 为外部用户保护/访问 api
- javascript - 组件安装和卸载时更新组件与 socketio 反应
- jquery - 寻找用于将日期转移到 saleforce datepicker 的新日期功能
- spring - 使用重复的额外列使多对多休眠