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 Object Name | Requirement | Requested Resource | Namespace |
tke-dns-autoscaler | Deployment | 20 M CPU and 10 Mi memory per node | 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 |
Feature | Involved Object | Involved Operation Permission |
Monitoring changes in node resources within the cluster | node | list/watch |
Modifying the number of coredns replicas deployed by the deployment | replicationcontrollers/scale, deployments/scale, and replicasets/scale | get/update |
Retrieving parameter configurations from the configmap. In the absence of configured parameters, a configmap with default parameters will be created. | 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 ]]}
configmap/tke-dns-autoscaler
under the kube-system namespace. For more information about the configuration, see the official documentation.
Apakah halaman ini membantu?