Show / Hide Table of Contents

Class V1ReplicaSetSpec

ReplicaSetSpec is the specification of a ReplicaSet.

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

Constructors

View Source

V1ReplicaSetSpec()

Declaration
public V1ReplicaSetSpec()
View Source

V1ReplicaSetSpec(V1ReplicaSetSpec)

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

Properties

View Source

EqualityContract

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

MinReadySeconds

Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)

Declaration
[JsonPropertyName("minReadySeconds")]
public int? MinReadySeconds { get; set; }
Property Value
Type Description
int?
View Source

Replicas

Replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset

Declaration
[JsonPropertyName("replicas")]
public int? Replicas { get; set; }
Property Value
Type Description
int?
View Source

Selector

Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

Declaration
[JsonPropertyName("selector")]
public V1LabelSelector Selector { get; set; }
Property Value
Type Description
V1LabelSelector
View Source

Template

Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#pod-template

Declaration
[JsonPropertyName("template")]
public V1PodTemplateSpec Template { get; set; }
Property Value
Type Description
V1PodTemplateSpec

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(V1ReplicaSetSpec?)

Declaration
public virtual bool Equals(V1ReplicaSetSpec? other)
Parameters
Type Name Description
V1ReplicaSetSpec 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 ==(V1ReplicaSetSpec?, V1ReplicaSetSpec?)

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

operator !=(V1ReplicaSetSpec?, V1ReplicaSetSpec?)

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

Implements

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