为了防止 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
关于kubernetes - EKS - 如何注释 USERDATA 中的某些节点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56992185/