data:linear: |-{"coresPerReplica": 2,"nodesPerReplica": 1,"min": 1,"max": 100,"preventSinglePointFailure": true}
data:ladder: |-{"coresToReplicas":[[ 1, 1 ],[ 64, 3 ],[ 512, 5 ],[ 1024, 7 ],[ 2048, 10 ],[ 4096, 15 ]],"nodesToReplicas":[[ 1, 1 ],[ 2, 2 ]]}
kubernets 对象名称 | 类型 | 请求资源 | 所属 Namespace |
tke-dns-autoscaler | Deployment | 每节点20mCPU,10Mi内存 | kube-system |
dns-autoscaler | ConfigMap | - | kube-system |
tke-dns-autoscale | ServiceAccount | - | kube-system |
tke-dns-autoscaler | ClusterRole | - | kube-system |
tke-dns-autoscaler | ClusterRoleBinding | - | kube-system |
功能 | 涉及对象 | 涉及操作权限 |
需要监听集群内 node 资源的变化。 | node | list/watch |
修改 deployment 部署的 coredns 副本数。 | replicationcontrollers/scale、deployments/scale 和 replicasets/scale | get/update |
获取 configmap 中参数配置。在没有配置参数的情况下,会创建默认参数的 configmap。 | configmap | get/create |
kind: ClusterRoleapiVersion: rbac.authorization.k8s.io/v1metadata:name: tke-dns-autoscalerrules:- apiGroups:- ""resources:- nodesverbs:- list- watch- apiGroups:- ""resources:- replicationcontrollers/scaleverbs:- get- update- apiGroups:- extensions- appsresources:- deployments/scale- replicasets/scaleverbs:- get- update- apiGroups:- ""resources:- configmapsverbs:- get- create
data:ladder: |-{"coresToReplicas":[[ 1, 1 ],[ 128, 3 ],[ 512, 4 ]],"nodesToReplicas":[[ 1, 1 ],[ 2, 2 ]]}
本页内容是否解决了您的问题?