产品动态
公告
产品发布记录
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 ]]}
Kubernetes 对象名称 | 类型 | 请求资源 | 所属 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 ]]}
参数 | 说明 | 类型 | 默认值 |
global.image.host | 镜像仓库地址 | string | ccr.ccs.tencentyun.com |
global.podSpec.tolerations | 额外的容忍配置(追加到默认的 CriticalAddonsOnly 之后) | list | [] |
global.podSpec.priorityClassName | Pod 优先级类名 | string | system-cluster-critical |
autoscaler.replicas | autoscaler 自身的副本数 | int | 1 |
autoscaler.resources.requests.cpu | CPU 请求 | string | 20m |
autoscaler.resources.requests.memory | 内存请求 | string | 10Mi |
autoscaler.resources.limits.cpu | CPU 限制,为空表示不设置 | string | "" |
autoscaler.resources.limits.memory | 内存限制,为空表示不设置 | string | "" |
文档反馈