Show / Hide Table of Contents

Class V1ReplicationControllerSpec

ReplicationControllerSpec is the specification of a replication controller.

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

Constructors

View Source

V1ReplicationControllerSpec()

Declaration
public V1ReplicationControllerSpec()
View Source

V1ReplicationControllerSpec(V1ReplicationControllerSpec)

Declaration
protected V1ReplicationControllerSpec(V1ReplicationControllerSpec original)
Parameters
Type Name Description
V1ReplicationControllerSpec 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 replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller

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 Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors

Declaration
[JsonPropertyName("selector")]
public IDictionary<string, string> Selector { get; set; }
Property Value
Type Description
IDictionary<string, string>
View Source

Template

Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#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(V1ReplicationControllerSpec?)

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

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

operator !=(V1ReplicationControllerSpec?, V1ReplicationControllerSpec?)

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

Implements

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