Skip to content
Docs Try Aspire

HorizontalPodAutoscalerBehaviorV2

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Defines the scaling behavior for a Horizontal Pod Autoscaler in Kubernetes.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class HorizontalPodAutoscalerBehaviorV2
{
// ...
}
The HorizontalPodAutoscalerBehaviorV2 class specifies how the scaling process should behave, including rules for scaling up and scaling down. This can include settings such as stabilization windows and scaling policies to ensure smooth transitions.
View all constructors
ScaleDownget; set
Gets or sets the rules that define the behavior for scaling down in a Horizontal Pod Autoscaler (HPA). This property specifies the conditions and policies associated with decreasing the number of replicas when scaling down the resources managed by the HPA.
ScaleUpget; set
Specifies the scaling behavior for scaling up operations in the HorizontalPodAutoscaler. Defines rules, policies, and other configurations governing how the scaling up process should occur.
View all properties