How to change --horizontal-pod-autoscaler-sync-period field in kube-controller-manager to 5sec in gke

早过忘川 提交于 2020-04-14 09:55:30

问题


I am trying to set up an horizontal pod auto scaling in GKE. No proper documentation found to reduce the --horizontal-pod-autoscaler-sync-period to 5 sec using kube-controller-manager.

In the below link it says there is a possibility of changing the flags:

https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager/

Is there any proper implementation steps to this?


回答1:


You are not able do this on GKE, EKS and other managed clusters.

In order to change/add flags in kube-controller-manager - you should have access to your /etc/kubernetes/manifests/ directory on master node and be able to modify parameters in /etc/kubernetes/manifests/kube-controller-manager.yaml.

GKE, EKS and other clusters manages only by their providers without getting you permissions to have access to master nodes.

But you can create cluster with kubeadm init and configure/change as you like.



来源:https://stackoverflow.com/questions/55815094/how-to-change-horizontal-pod-autoscaler-sync-period-field-in-kube-controller-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!