HorizontalPodAutoscalerSpecV1 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.
Specifies the desired behavior of a Horizontal Pod Autoscaler in Kubernetes for the autoscaling/v1 version.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class HorizontalPodAutoscalerSpecV1
[<YamlDotNet.Serialization.YamlSerializable>]
type HorizontalPodAutoscalerSpecV1 = class
Public NotInheritable Class HorizontalPodAutoscalerSpecV1
- Inheritance
-
HorizontalPodAutoscalerSpecV1
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
The HorizontalPodAutoscalerSpecV1 class defines the configuration for automatically scaling the number of pods based on observed metrics such as CPU utilization. It specifies the target resource to be scaled, the minimum and maximum number of replicas, and the desired CPU utilization threshold for scaling decisions.
Constructors
HorizontalPodAutoscalerSpecV1() |
Properties
MaxReplicas |
Specifies the maximum allowed number of replicas for the target resource managed by the HorizontalPodAutoscaler. |
MinReplicas |
Gets or sets the minimum number of replicas that the HorizontalPodAutoscaler will maintain for the specified resource. |
ScaleTargetRef |
Specifies the reference to the target object that the HorizontalPodAutoscaler is scaling. |
TargetCPUUtilizationPercentage |
Gets or sets the target CPU utilization percentage for the horizontal pod autoscaler. |