Share via


HorizontalPodAutoscalerV2 Class

Definition

Represents a Kubernetes resource for Horizontal Pod Autoscaling (HPA) under the autoscaling/v2 API version.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class HorizontalPodAutoscalerV2 : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
[<YamlDotNet.Serialization.YamlSerializable>]
type HorizontalPodAutoscalerV2 = class
    inherit BaseKubernetesResource
Public NotInheritable Class HorizontalPodAutoscalerV2
Inherits BaseKubernetesResource
Inheritance
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Remarks

The HorizontalPodAutoscalerV2 class is responsible for defining and managing the behavior of the HPA, which automatically adjusts the number of pods in a deployment, replica set, or stateful set based on metrics and thresholds. It extends BaseKubernetesResource to include additional properties specific to the HPA specification as defined in Kubernetes.

Constructors

HorizontalPodAutoscalerV2()

Represents a Kubernetes resource for Horizontal Pod Autoscaling (HPA) under the autoscaling/v2 API version.

Properties

ApiVersion

Gets or sets the API version for the Kubernetes resource.

(Inherited from BaseKubernetesObject)
Kind

Gets or sets the kind of the Kubernetes resource.

(Inherited from BaseKubernetesObject)
Metadata

Gets or sets the metadata for the Kubernetes resource.

(Inherited from BaseKubernetesResource)
Spec

Gets or sets the specification of the Horizontal Pod Autoscaler (HPA) in version v2 of the Kubernetes Autoscaling API.

Applies to