Show / Hide Table of Contents

Class V1beta2NodeAllocatableOverhead

NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. Kubelet accounts for this overhead by adding it to both the pod-level and container-level cgroups of referencing containers.

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

Constructors

V1beta2NodeAllocatableOverhead()

Declaration
public V1beta2NodeAllocatableOverhead()

V1beta2NodeAllocatableOverhead(V1beta2NodeAllocatableOverhead)

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

Properties

EqualityContract

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

PerContainer

PerContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing 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.

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

PerPod

PerPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim.

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(V1beta2NodeAllocatableOverhead?)

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

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

operator !=(V1beta2NodeAllocatableOverhead?, V1beta2NodeAllocatableOverhead?)

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

Implements

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