Show / Hide Table of Contents

Class V1HorizontalPodAutoscalerSpec

specification of a horizontal pod autoscaler.

Inheritance
object
V1HorizontalPodAutoscalerSpec
Implements
IEquatable<V1HorizontalPodAutoscalerSpec>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1HorizontalPodAutoscalerSpec : IEquatable<V1HorizontalPodAutoscalerSpec>

Constructors

View Source

V1HorizontalPodAutoscalerSpec()

Declaration
public V1HorizontalPodAutoscalerSpec()
View Source

V1HorizontalPodAutoscalerSpec(V1HorizontalPodAutoscalerSpec)

Declaration
protected V1HorizontalPodAutoscalerSpec(V1HorizontalPodAutoscalerSpec original)
Parameters
Type Name Description
V1HorizontalPodAutoscalerSpec original

Properties

View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

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
Type Description
int
View Source

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
Type Description
int?
View Source

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
Type Description
V1CrossVersionObjectReference
View Source

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
Type Description
int?

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1HorizontalPodAutoscalerSpec?)

Declaration
public virtual bool Equals(V1HorizontalPodAutoscalerSpec? other)
Parameters
Type Name Description
V1HorizontalPodAutoscalerSpec other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1HorizontalPodAutoscalerSpec?, V1HorizontalPodAutoscalerSpec?)

Declaration
public static bool operator ==(V1HorizontalPodAutoscalerSpec? left, V1HorizontalPodAutoscalerSpec? right)
Parameters
Type Name Description
V1HorizontalPodAutoscalerSpec left
V1HorizontalPodAutoscalerSpec right
Returns
Type Description
bool
View Source

operator !=(V1HorizontalPodAutoscalerSpec?, V1HorizontalPodAutoscalerSpec?)

Declaration
public static bool operator !=(V1HorizontalPodAutoscalerSpec? left, V1HorizontalPodAutoscalerSpec? right)
Parameters
Type Name Description
V1HorizontalPodAutoscalerSpec left
V1HorizontalPodAutoscalerSpec right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX