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

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


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.


you can stop your minikube cluster and start it with your extra configs ...

minikube start --extra-config 'controller-manager.horizontal-pod-autoscaler-sync-period=5s'

for more details, you can go through https://minikube.sigs.k8s.io/docs/handbook/config/#modifying-kubernetes-defaults