Share via


HpaScalingPolicyV2 Class

Definition

Represents the scaling policy configuration for Kubernetes Horizontal Pod Autoscaler (HPA) in version 2 API.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class HpaScalingPolicyV2
[<YamlDotNet.Serialization.YamlSerializable>]
type HpaScalingPolicyV2 = class
Public NotInheritable Class HpaScalingPolicyV2
Inheritance
HpaScalingPolicyV2
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

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.

Constructors

HpaScalingPolicyV2()

Properties

PeriodSeconds

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.

Type

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.

Value

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.

Applies to