简介
默认ack的apiserver qps是5,突发请求上限是10,如果你对于apiserver的请求qps大于这个值就会报错,所以我们需要修改节点池的kubelet参数
之前ack是不能直接在ack的管理面板上修改kubelet参数的,现在是直接可以修改了的
直接修改可以看
https://help.aliyun.com/document_detail/452567.html
但是如果你想使用脚本去修改ack的kubelet参数可以看看这个。
操作
首先下载aliyun 的cli
wget https://github.com/aliyun/aliyun-cli/releases/download/v3.0.141/aliyun-cli-macosx-3.0.141-arm64.tgz
之后登陆验证
aliyun configure
➜ ~ aliyun configure
Configuring profile 'default' in 'AK' authenticate mode...
Access Key Id []:
Access Key Secret []:
Default Region Id []:
Default Output Format [json]: json (Only support json)
Default Language [zh|en] en:
Saving profile[default] ...Done.
Configure Done!!!
..............888888888888888888888 ........=8888888888888888888D=..............
...........88888888888888888888888 ..........D8888888888888888888888I...........
.........,8888888888888ZI: ...........................=Z88D8888888888D..........
.........+88888888 ..........................................88888888D..........
.........+88888888 .......Welcome to use Alibaba Cloud.......O8888888D..........
.........+88888888 ............. ************* ..............O8888888D..........
.........+88888888 .... Command Line Interface(Reloaded) ....O8888888D..........
.........+88888888...........................................88888888D..........
..........D888888888888DO+. ..........................?ND888888888888D..........
...........O8888888888888888888888...........D8888888888888888888888=...........
............ .:D8888888888888888888.........78888888888888888888O ..............
➜ ~
接着就是修改节点池的参数
./aliyun cs PUT /clusters/集群id/nodepools/节点池id/node_config –body=’{“rolling_policy”: {“max_parallelism”: 10}, “kubelet_config”: {“kubeAPIQPS”:50,“kubeAPIBurst”:100}}'
其实就是一个put请求
最后你可以进节点中执行
ps -ef |grep kubelet
验证下是不是有对应的参数
欢迎关注我的博客www.bboy.app
Have Fun