Skip to content
Docs Try Aspire

HorizontalPodAutoscalerSpecV1

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Specifies the desired behavior of a Horizontal Pod Autoscaler in Kubernetes for the autoscaling/v1 version.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class HorizontalPodAutoscalerSpecV1
{
// ...
}
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.