HorizontalPodAutoscaler 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 Kubernetes HorizontalPodAutoscaler resource for managing the dynamic scaling of pods based on custom or predefined metrics.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class HorizontalPodAutoscaler : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
[<YamlDotNet.Serialization.YamlSerializable>]
type HorizontalPodAutoscaler = class
inherit BaseKubernetesResource
Public NotInheritable Class HorizontalPodAutoscaler
Inherits BaseKubernetesResource
- Inheritance
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
The HorizontalPodAutoscaler resource is part of the Kubernetes autoscaling/v1 API version. It automatically adjusts the number of replicas in a replication controller, deployment, or replica set based on observed metrics such as CPU utilization. This class encapsulates the configuration settings, including the scaling target reference and metric thresholds, required to define a HorizontalPodAutoscaler in a Kubernetes cluster.
Constructors
HorizontalPodAutoscaler() |
Represents the Kubernetes HorizontalPodAutoscaler resource for managing the dynamic scaling of pods based on custom or predefined metrics. |
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 that defines the desired behavior of the Horizontal Pod Autoscaler. |