HorizontalPodAutoscalerSpecV1
Class sealed net10.0
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{ // ...} 5 members
Remarks
Section titled Remarks 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.
Constructors1
Section titled ConstructorsProperties4
Section titled PropertiesMaxReplicasget; setint Specifies the maximum allowed number of replicas for the target resource managed by the HorizontalPodAutoscaler.
MinReplicasget; setint? Gets or sets the minimum number of replicas that the HorizontalPodAutoscaler will maintain for the specified resource.
ScaleTargetRefget; set Specifies the reference to the target object that the HorizontalPodAutoscaler is scaling.
TargetCPUUtilizationPercentageget; setint? Gets or sets the target CPU utilization percentage for the horizontal pod autoscaler.