Kubernetes unknown field “behavior”

后端 未结 3 1205
攒了一身酷
攒了一身酷 2021-01-24 00:49

I\'m creating a HorizontalPodAutoscaler in Kubernetes and I need to configure the downscale stabilization window to be smaller than the default. The code used and error are belo

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-24 01:11

    The Doc has updated it to v1.18 starting to behavior field

    Support for configurable scaling behavior Starting from v1.18 the v2beta2 API allows scaling behavior to be configured through the HPA behavior field. Behaviors are specified separately for scaling up and down in scaleUp or scaleDown section under the behavior field. A stabilization window can be specified for both directions which prevents the flapping of the number of the replicas in the scaling target. Similarly specifying scaling policies controls the rate of change of replicas while scaling.

提交回复
热议问题