如何在gke中将kube-controller-manager中的--horizo​​ntal-pod-autoscaler-sync-period字段更改为5sec [英] How to change --horizontal-pod-autoscaler-sync-period field in kube-controller-manager to 5sec in gke

查看:75
本文介绍了如何在gke中将kube-controller-manager中的--horizo​​ntal-pod-autoscaler-sync-period字段更改为5sec的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在GKE中设置水平吊舱自动缩放.找不到适当的文档,可以使用kube-controller-manager将--horizo​​ntal-pod-autoscaler-sync-period缩短至5秒.

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?

推荐答案

您无法在GKE,EKS和其他托管群集上执行此操作.

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

为了更改/添加kube-controller-manager中的标志-您应该有权访问主节点上的/etc/kubernetes/manifests/目录,并且能够修改/etc/kubernetes/manifests/kube-controller-manager.yaml中的参数.

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和其他群集仅由其提供者进行管理,而没有获得您访问主节点的权限.

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

但是您可以使用 kubeadm init 创建集群并配置/随心所欲地改变.

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

这篇关于如何在gke中将kube-controller-manager中的--horizo​​ntal-pod-autoscaler-sync-period字段更改为5sec的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆