Class Scheduling
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.node.v1.Scheduling
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SchedulingBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Scheduling extends Object implements io.fabric8.kubernetes.api.builder.Editable<SchedulingBuilder>, io.fabric8.kubernetes.api.model.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<io.fabric8.kubernetes.api.model.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<io.fabric8.kubernetes.api.model.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<io.fabric8.kubernetes.api.model.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()
-
-
-
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<io.fabric8.kubernetes.api.model.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<io.fabric8.kubernetes.api.model.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 interfaceio.fabric8.kubernetes.api.builder.Editable<SchedulingBuilder>
-
toBuilder
public SchedulingBuilder toBuilder()
-
-