为了防止 Cluster Auto Scaler
终止某些节点,我需要使用以下内容注释它们:
cluster-autoscaler.kubernetes.io/scale-down-disabled=true;
在 USERDATA
脚本中有没有办法做到这一点?
对于标记节点,没有问题,可以通过以下方式进行:
--kubelet-extra-args \
"--node-labels=
谢谢
最佳答案
不,这不可能。
引导脚本支持的参数列表:
--use-max-pods Sets --max-pods for the kubelet when true. (default: true)
--b64-cluster-ca The base64 encoded cluster CA content. Only valid when used with --apiserver-endpoint. Bypasses calling \"aws eks describe-cluster\"
--apiserver-endpoint The EKS cluster API Server endpoint. Only valid when used with --b64-cluster-ca. Bypasses calling \"aws eks describe-cluster\"
--kubelet-extra-args Extra arguments to add to the kubelet. Useful for adding labels or taints.
--enable-docker-bridge Restores the docker default bridge network. (default: false)
--aws-api-retry-attempts Number of retry attempts for AWS API call (DescribeCluster) (default: 3)
--docker-config-json The contents of the /etc/docker/daemon.json file. Useful if you want a custom config differing from the default one in the AMI
https://stackoverflow.com/questions/56992185/
相关文章:
javascript - 是否可以禁用整个主体(包括内部 iFrame)的填写付款表格?
javascript - 错误 [prerender-spa-plugin] - 无法预呈现所有路线
reactjs - 覆盖 MuiContainer 类时如何摆脱 Typescript 类型错误?
android - 如何在 kotlin 中使用 http 请求将图像上传到服务器?
java - Spring Boot + Yaml + @PropertySource + @Con
azure-sql-database - 是否可以在 Azure SQL 数据库中配置查询超时?
google-chrome - 查找最新可用的 Chrome 版本(在 Linux 上,例如从 sh