Class NodeAllocatableMapping
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1beta1.NodeAllocatableMapping
-
- All Implemented Interfaces:
Editable<NodeAllocatableMappingBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NodeAllocatableMapping extends Object implements Editable<NodeAllocatableMappingBuilder>, KubernetesResource
NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeAllocatableMapping()No args constructor for use in serializationNodeAllocatableMapping(String capacityKey, Quantity capacityMultiplier, Quantity deviceMultiplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeAllocatableMappingBuilderedit()Map<String,Object>getAdditionalProperties()StringgetCapacityKey()CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map.QuantitygetCapacityMultiplier()NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity.QuantitygetDeviceMultiplier()NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCapacityKey(String capacityKey)CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map.voidsetCapacityMultiplier(Quantity capacityMultiplier)NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity.voidsetDeviceMultiplier(Quantity deviceMultiplier)NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity.NodeAllocatableMappingBuildertoBuilder()
-
-
-
Method Detail
-
getCapacityKey
public String getCapacityKey()
CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi", and this field is set to "dra.example.com/memory", then for a claim allocation that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the node allocatable resource mapping will be "4Gi". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.
-
setCapacityKey
public void setCapacityKey(String capacityKey)
CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi", and this field is set to "dra.example.com/memory", then for a claim allocation that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the node allocatable resource mapping will be "4Gi". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.
-
getCapacityMultiplier
public Quantity getCapacityMultiplier()
NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.
-
setCapacityMultiplier
public void setCapacityMultiplier(Quantity capacityMultiplier)
NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.
-
getDeviceMultiplier
public Quantity getDeviceMultiplier()
NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.
-
setDeviceMultiplier
public void setDeviceMultiplier(Quantity deviceMultiplier)
NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices or the specific capacity consumed. These options are mutually exclusive. Kubelet adds this mapped resource quantity from claim to both requests and limits at the pod-level cgroup, and to limits at the container-level cgroup for each container referencing the claim.
-
edit
public NodeAllocatableMappingBuilder edit()
- Specified by:
editin interfaceEditable<NodeAllocatableMappingBuilder>
-
toBuilder
public NodeAllocatableMappingBuilder toBuilder()
-
-