Show / Hide Table of Contents

Class V1NodeAllocatableOverheadResources

NodeAllocatableOverheadResources describes auxiliary overhead resource allocations.

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

Constructors

V1NodeAllocatableOverheadResources()

Declaration
public V1NodeAllocatableOverheadResources()

V1NodeAllocatableOverheadResources(V1NodeAllocatableOverheadResources)

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

Properties

EqualityContract

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

Name

Name is the name of the resource (e.g., cpu, memory).

Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type Description
string

PerContainer

PerContainer is the variable overhead quantity applied for each container referencing the claim. The container references are recorded in nodeAllocatableResourceClaimStatuses.containers. The total overhead quantity allocated for the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) Kubelet accounts for this overhead in cgroups: - Pod-level cgroup (requests and limits): Kubelet adds PerPod + (PerContainer * NumReferences). - Container-level cgroup (limits only): Kubelet adds PerPod + PerContainer for each referencing container. This allows any single container to access the pod-level overhead, while the parent cgroup caps the total usage to account for PerPod exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration.

Declaration
[JsonPropertyName("perContainer")]
public ResourceQuantity PerContainer { get; set; }
Property Value
Type Description
ResourceQuantity

PerPod

PerPod is the flat overhead quantity allocated per pod. Adding to each container limit allows individual containers to utilize the overhead, while the parent pod-level cgroup limit caps the total usage at the pod boundary where the overhead is accounted for exactly once. At least one of PerPod or PerContainer must be specified. Specifying neither is an invalid configuration.

Declaration
[JsonPropertyName("perPod")]
public ResourceQuantity PerPod { get; set; }
Property Value
Type Description
ResourceQuantity

Methods

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

Equals(V1NodeAllocatableOverheadResources?)

Declaration
public virtual bool Equals(V1NodeAllocatableOverheadResources? other)
Parameters
Type Name Description
V1NodeAllocatableOverheadResources other
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

operator ==(V1NodeAllocatableOverheadResources?, V1NodeAllocatableOverheadResources?)

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

operator !=(V1NodeAllocatableOverheadResources?, V1NodeAllocatableOverheadResources?)

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

Implements

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