Class V1NodeAllocatableOverheadResources
NodeAllocatableOverheadResources describes auxiliary overhead resource
allocations.
Inheritance
V1NodeAllocatableOverheadResources
Assembly: KubernetesClient.dll
Syntax
public record V1NodeAllocatableOverheadResources : IEquatable<V1NodeAllocatableOverheadResources>
Constructors
V1NodeAllocatableOverheadResources()
Declaration
public V1NodeAllocatableOverheadResources()
V1NodeAllocatableOverheadResources(V1NodeAllocatableOverheadResources)
Declaration
protected V1NodeAllocatableOverheadResources(V1NodeAllocatableOverheadResources original)
Parameters
Properties
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
Name
Name is the name of the resource (e.g., cpu, memory).
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
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
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
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1NodeAllocatableOverheadResources?)
Declaration
public virtual bool Equals(V1NodeAllocatableOverheadResources? 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 ==(V1NodeAllocatableOverheadResources?, V1NodeAllocatableOverheadResources?)
Declaration
public static bool operator ==(V1NodeAllocatableOverheadResources? left, V1NodeAllocatableOverheadResources? right)
Parameters
Returns
operator !=(V1NodeAllocatableOverheadResources?, V1NodeAllocatableOverheadResources?)
Declaration
public static bool operator !=(V1NodeAllocatableOverheadResources? left, V1NodeAllocatableOverheadResources? right)
Parameters
Returns
Implements