Class V1StatefulSet
StatefulSet represents a set of pods with consistent identities. Identities are
defined as:
- Network: A single stable DNS and hostname.
- Storage: As many VolumeClaims as requested.
The StatefulSet guarantees that a given network identity will always map to the
same storage identity.
Inheritance
V1StatefulSet
Assembly: KubernetesClient.dll
Syntax
[KubernetesEntity(Group = "apps", Kind = "StatefulSet", ApiVersion = "v1", PluralName = "statefulsets")]
public record V1StatefulSet : IKubernetesObject<V1ObjectMeta>, IKubernetesObject, IMetadata<V1ObjectMeta>, ISpec<V1StatefulSetSpec>, IEquatable<V1StatefulSet>
Constructors
View Source
V1StatefulSet()
Declaration
View Source
V1StatefulSet(V1StatefulSet)
Declaration
protected V1StatefulSet(V1StatefulSet original)
Parameters
Fields
View Source
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
View Source
KubeGroup
Declaration
public const string KubeGroup = "apps"
Field Value
View Source
KubeKind
Declaration
public const string KubeKind = "StatefulSet"
Field Value
View Source
KubePluralName
Declaration
public const string KubePluralName = "statefulsets"
Field Value
Properties
View Source
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
View Source
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
View Source
Spec
Spec defines the desired identities of pods in this set.
Declaration
[JsonPropertyName("spec")]
public V1StatefulSetSpec Spec { get; set; }
Property Value
View Source
Status
Status is the current status of Pods in this StatefulSet. This data may be out
of date by some window of time.
Declaration
[JsonPropertyName("status")]
public V1StatefulSetStatus Status { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1StatefulSet?)
Declaration
public virtual bool Equals(V1StatefulSet? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1StatefulSet?, V1StatefulSet?)
Declaration
public static bool operator ==(V1StatefulSet? left, V1StatefulSet? right)
Parameters
Returns
View Source
operator !=(V1StatefulSet?, V1StatefulSet?)
Declaration
public static bool operator !=(V1StatefulSet? left, V1StatefulSet? right)
Parameters
Returns
Implements
Extension Methods