Class V1HorizontalPodAutoscalerSpec
specification of a horizontal pod autoscaler.
Inheritance
V1HorizontalPodAutoscalerSpec
Assembly: KubernetesClient.dll
Syntax
public record V1HorizontalPodAutoscalerSpec : IEquatable<V1HorizontalPodAutoscalerSpec>
Constructors
V1HorizontalPodAutoscalerSpec()
Declaration
public V1HorizontalPodAutoscalerSpec()
V1HorizontalPodAutoscalerSpec(V1HorizontalPodAutoscalerSpec)
Declaration
protected V1HorizontalPodAutoscalerSpec(V1HorizontalPodAutoscalerSpec original)
Parameters
Properties
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
MaxReplicas
maxReplicas is the upper limit for the number of pods that can be set by the
autoscaler; cannot be smaller than MinReplicas.
Declaration
[JsonPropertyName("maxReplicas")]
public int MaxReplicas { get; set; }
Property Value
MinReplicas
minReplicas is the lower limit for the number of replicas to which the
autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be
0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or
External metric is configured. Scaling is active as long as at least one metric
value is available.
Declaration
[JsonPropertyName("minReplicas")]
public int? MinReplicas { get; set; }
Property Value
ScaleTargetRef
reference to scaled resource; horizontal pod autoscaler will learn the current
resource consumption and will set the desired number of pods by using its Scale
subresource.
Declaration
[JsonPropertyName("scaleTargetRef")]
public V1CrossVersionObjectReference ScaleTargetRef { get; set; }
Property Value
TargetCPUUtilizationPercentage
targetCPUUtilizationPercentage is the target average CPU utilization
(represented as a percentage of requested CPU) over all the pods; if not
specified the default autoscaling policy will be used.
Declaration
[JsonPropertyName("targetCPUUtilizationPercentage")]
public int? TargetCPUUtilizationPercentage { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1HorizontalPodAutoscalerSpec?)
Declaration
public virtual bool Equals(V1HorizontalPodAutoscalerSpec? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1HorizontalPodAutoscalerSpec?, V1HorizontalPodAutoscalerSpec?)
Declaration
public static bool operator ==(V1HorizontalPodAutoscalerSpec? left, V1HorizontalPodAutoscalerSpec? right)
Parameters
Returns
operator !=(V1HorizontalPodAutoscalerSpec?, V1HorizontalPodAutoscalerSpec?)
Declaration
public static bool operator !=(V1HorizontalPodAutoscalerSpec? left, V1HorizontalPodAutoscalerSpec? right)
Parameters
Returns
Implements