简体   繁体   English

Kubernetes:AWS 集群自动扩缩器

[英]Kubernetes: AWS Cluster Autoscaler

Kubernetes: Aws Cluster Autoscaler is scaling one instance at a time but what If I want to scale up with 2 instances at a time and scale down with 1. Kubernetes:Aws Cluster Autoscaler 一次扩展一个实例,但是如果我想一次扩展 2 个实例并缩减 1 个实例,该怎么办?

I have not tested this, but this is how I would go about the problem in general:我没有对此进行测试,但这就是我对一般问题的 go 的方式:

  1. Set up an AWS Autoscaling Group with a Step Scaling Policy .使用Step Scaling Policy设置 AWS Autoscaling 组。 Step Scaling can do the sort of scaling you are after with adding several capacity units (instances), dependent on CloudWatch alarms (which you also will have to set up, both for to trigger scale ups and scale downs). Step Scaling 可以通过添加多个容量单位(实例)来进行扩展,具体取决于 CloudWatch 警报(您还必须设置它,以触发扩大和缩小)。
  2. Configure your K8s Autoscaler to point to the ASG created in step 1, either by tag-based autodiscovery or manually .通过基于标签的自动发现手动将您的 K8s Autoscaler 配置为指向在步骤 1 中创建的 ASG。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM