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
V1RuntimeClass()
Declaration
V1RuntimeClass(V1RuntimeClass)
Declaration
protected V1RuntimeClass(V1RuntimeClass original)
Parameters
Fields
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
KubeGroup
Declaration
public const string KubeGroup = "node.k8s.io"
Field Value
KubeKind
Declaration
public const string KubeKind = "RuntimeClass"
Field Value
KubePluralName
Declaration
public const string KubePluralName = "runtimeclasses"
Field Value
Properties
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
Overhead
Declaration
[JsonPropertyName("overhead")]
public V1Overhead Overhead { get; set; }
Property Value
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
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1RuntimeClass?)
Declaration
public virtual bool Equals(V1RuntimeClass? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1RuntimeClass?, V1RuntimeClass?)
Declaration
public static bool operator ==(V1RuntimeClass? left, V1RuntimeClass? right)
Parameters
Returns
operator !=(V1RuntimeClass?, V1RuntimeClass?)
Declaration
public static bool operator !=(V1RuntimeClass? left, V1RuntimeClass? right)
Parameters
Returns
Implements
Extension Methods