Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

HorizontalPodAutoscalerV2

Classsealednet10.0
📦 Aspire.Hosting.Kubernetes v13.6.0-preview.1.26478.8
Represents a Kubernetes resource for Horizontal Pod Autoscaling (HPA) under the autoscaling/v2 API version.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class HorizontalPodAutoscalerV2
: Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
{
// ...
}
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.
View all constructors
View all properties