HorizontalPodAutoscalerSpecV2
Class sealed net10.0
Represents the specification for a Horizontal Pod Autoscaler (HPA) in version v2 of the Kubernetes Autoscaling API. Provides configuration settings for scaling behavior, target resource, metrics, and replica limits.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class HorizontalPodAutoscalerSpecV2{ // ...} 6 members
Constructors1
Section titled ConstructorsProperties5
Section titled PropertiesBehaviorget; set Specifies the scaling behavior configuration for a Horizontal Pod Autoscaler.
MaxReplicasget; setint Specifies the maximum number of replicas that a resource, such as a set of pods, can scale up to using the Horizontal Pod Autoscaler (HPA).
Metricsget Gets the list of metrics that determine the desired replica count for the target resource.
MinReplicasget; setint? Specifies the minimum number of replicas that the Horizontal Pod Autoscaler should maintain.
ScaleTargetRefget; set Gets or sets the scale target reference for the HorizontalPodAutoscaler.