Class Scheduling
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.node.v1alpha1.Scheduling
-
- All Implemented Interfaces:
Editable<SchedulingBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Scheduling extends Object implements Editable<SchedulingBuilder>, KubernetesResource
Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Scheduling()No args constructor for use in serializationScheduling(Map<String,String> nodeSelector, List<Toleration> tolerations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchedulingBuilderedit()Map<String,Object>getAdditionalProperties()Map<String,String>getNodeSelector()nodeSelector lists labels that must be present on nodes that support this RuntimeClass.List<Toleration>getTolerations()tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetNodeSelector(Map<String,String> nodeSelector)nodeSelector lists labels that must be present on nodes that support this RuntimeClass.voidsetTolerations(List<Toleration> tolerations)tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.SchedulingBuildertoBuilder()
-
-
-
Constructor Detail
-
Scheduling
public Scheduling()
No args constructor for use in serialization
-
Scheduling
public Scheduling(Map<String,String> nodeSelector, List<Toleration> tolerations)
-
-
Method Detail
-
getNodeSelector
public Map<String,String> getNodeSelector()
nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
-
setNodeSelector
public void setNodeSelector(Map<String,String> nodeSelector)
nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
-
getTolerations
public List<Toleration> getTolerations()
tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
-
setTolerations
public void setTolerations(List<Toleration> tolerations)
tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
-
edit
public SchedulingBuilder edit()
- Specified by:
editin interfaceEditable<SchedulingBuilder>
-
toBuilder
public SchedulingBuilder toBuilder()
-
-