HpaScalingPolicyV2
Class sealed net10.0
Represents the scaling policy configuration for Kubernetes Horizontal Pod Autoscaler (HPA) in version 2 API.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class HpaScalingPolicyV2{ // ...}Remarks
Section titled Remarks This class defines specific policies that determine how scaling operations are performed, including the type of policy, value, and the time period over which the policy is applied.
Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesPeriodSecondsget; setint Gets or sets the duration, in seconds, for which the scaling policy is applicable. This value defines the time window during which a HPA scaling action is restricted.
Typeget; setstring Represents the scaling policy type for the Horizontal Pod Autoscaler (HPA) in Kubernetes. This property determines the strategy to be used for scaling, such as increasing or decreasing replicas.
Valueget; setint Gets or sets the scaling value used in the Horizontal Pod Autoscaler (HPA) scaling policy. Specifies the magnitude of scaling changes to be applied by the policy.