Skip to content
Docs Try Aspire

HorizontalPodAutoscaler Constructors

Class Constructors 1 member
Represents the Kubernetes HorizontalPodAutoscaler resource for managing the dynamic scaling of pods based on custom or predefined metrics.
Represents the Kubernetes HorizontalPodAutoscaler resource for managing the dynamic scaling of pods based on custom or predefined metrics.
public sealed class HorizontalPodAutoscaler
{
public HorizontalPodAutoscaler()
{
// ...
}
}
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.