linzhengen / tech-notes

My tech notes write in github issues🧲
1 stars 0 forks source link

[20211004] GKEにデフォルトに `kube-dns-autoscaler`が入っている #147

Open linzhengen opened 3 years ago

linzhengen commented 3 years ago

Doc

https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-autoscaler

kube-dns-autoscalerのCommand

   Command:
      /cluster-proportional-autoscaler
      --namespace=kube-system
      --configmap=kube-dns-autoscaler
      --target=Deployment/kube-dns
      --default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"preventSinglePointFailure":true,"includeUnschedulableNodes":true}}
      --logtostderr=true
      --v=2

coresPerReplicaとnodesPerReplicaはチューニングが必要なのかな、チューニングする際に、直接kubectl editを使うのか。。。

計算式

https://kubernetes.io/docs/tasks/administer-cluster/dns-horizontal-autoscaling/#tuning-autoscaling-parameters

replicas = max( ceil( cores × 1/coresPerReplica ) , ceil( nodes × 1/nodesPerReplica ) )

kube-dnsに4つコンテナが入っている、EKSのcore-dnsと違う