Class V1RuntimeClass
RuntimeClass defines a class of container runtime supported in the cluster. The
RuntimeClass is used to determine which container runtime is used to run all
containers in a pod. RuntimeClasses are manually defined by a user or cluster
provisioner, and referenced in the PodSpec. The Kubelet is responsible for
resolving the RuntimeClassName reference before running the pod. For more
details, see https://kubernetes.io/docs/concepts/containers/runtime-class/
Inheritance
V1RuntimeClass
Assembly: KubernetesClient.dll
Syntax
[KubernetesEntity(Group = "node.k8s.io", Kind = "RuntimeClass", ApiVersion = "v1", PluralName = "runtimeclasses")]
public record V1RuntimeClass : IKubernetesObject<V1ObjectMeta>, IKubernetesObject, IMetadata<V1ObjectMeta>, IEquatable<V1RuntimeClass>
Constructors
View Source
V1RuntimeClass()
Declaration
View Source
V1RuntimeClass(V1RuntimeClass)
Declaration
protected V1RuntimeClass(V1RuntimeClass original)
Parameters
Fields
View Source
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
View Source
KubeGroup
Declaration
public const string KubeGroup = "node.k8s.io"
Field Value
View Source
KubeKind
Declaration
public const string KubeKind = "RuntimeClass"
Field Value
View Source
KubePluralName
Declaration
public const string KubePluralName = "runtimeclasses"
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
Handler
handler specifies the underlying runtime and configuration that the CRI
implementation will use to handle pods of this class. The possible values are
specific to the node & CRI configuration. It is assumed that all handlers are
available on every node, and handlers of the same name are equivalent on every
node. For example, a handler called "runc" might specify that the runc OCI
runtime (using native Linux containers) will be used to run the containers in a
pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123)
requirements, and is immutable.
Declaration
[JsonPropertyName("handler")]
public string Handler { get; set; }
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
Overhead
Declaration
[JsonPropertyName("overhead")]
public V1Overhead Overhead { get; set; }
Property Value
View Source
Scheduling
scheduling holds the scheduling constraints to ensure that pods running with
this RuntimeClass are scheduled to nodes that support it. If scheduling is nil,
this RuntimeClass is assumed to be supported by all nodes.
Declaration
[JsonPropertyName("scheduling")]
public V1Scheduling Scheduling { 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(V1RuntimeClass?)
Declaration
public virtual bool Equals(V1RuntimeClass? 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 ==(V1RuntimeClass?, V1RuntimeClass?)
Declaration
public static bool operator ==(V1RuntimeClass? left, V1RuntimeClass? right)
Parameters
Returns
View Source
operator !=(V1RuntimeClass?, V1RuntimeClass?)
Declaration
public static bool operator !=(V1RuntimeClass? left, V1RuntimeClass? right)
Parameters
Returns
Implements
Extension Methods