Class 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 Detail

      • Scheduling

        public Scheduling()
        No args constructor for use in serialization
      • Scheduling

        public Scheduling​(Map<String,​String> nodeSelector,
                          List<io.fabric8.kubernetes.api.model.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<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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)