HorizontalPodAutoscalerSpecV2
Classsealednet10.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.
MaxReplicas get; 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.
MinReplicas get; setint? Specifies the minimum number of replicas that the Horizontal Pod Autoscaler should maintain.
ScaleTargetRef get; set Gets or sets the scale target reference for the HorizontalPodAutoscaler.