HorizontalPodAutoscalerSpecV2 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class HorizontalPodAutoscalerSpecV2
[<YamlDotNet.Serialization.YamlSerializable>]
type HorizontalPodAutoscalerSpecV2 = class
Public NotInheritable Class HorizontalPodAutoscalerSpecV2
- Inheritance
-
HorizontalPodAutoscalerSpecV2
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Constructors
HorizontalPodAutoscalerSpecV2() |
Properties
Behavior |
Specifies the scaling behavior configuration for a Horizontal Pod Autoscaler. |
MaxReplicas |
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). |
Metrics |
Gets the list of metrics that determine the desired replica count for the target resource. |
MinReplicas |
Specifies the minimum number of replicas that the Horizontal Pod Autoscaler should maintain. |
ScaleTargetRef |
Gets or sets the scale target reference for the HorizontalPodAutoscaler. |