Class V1beta1NodeAllocatableOverhead
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
V1beta1NodeAllocatableOverhead
Assembly: KubernetesClient.dll
Syntax
public record V1beta1NodeAllocatableOverhead : IEquatable<V1beta1NodeAllocatableOverhead>
Constructors
V1beta1NodeAllocatableOverhead()
Declaration
public V1beta1NodeAllocatableOverhead()
V1beta1NodeAllocatableOverhead(V1beta1NodeAllocatableOverhead)
Declaration
protected V1beta1NodeAllocatableOverhead(V1beta1NodeAllocatableOverhead original)
Parameters
Properties
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
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
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1beta1NodeAllocatableOverhead?)
Declaration
public virtual bool Equals(V1beta1NodeAllocatableOverhead? 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 ==(V1beta1NodeAllocatableOverhead?, V1beta1NodeAllocatableOverhead?)
Declaration
public static bool operator ==(V1beta1NodeAllocatableOverhead? left, V1beta1NodeAllocatableOverhead? right)
Parameters
Returns
operator !=(V1beta1NodeAllocatableOverhead?, V1beta1NodeAllocatableOverhead?)
Declaration
public static bool operator !=(V1beta1NodeAllocatableOverhead? left, V1beta1NodeAllocatableOverhead? right)
Parameters
Returns
Implements