case class Scheduling(nodeSelector: Optional[Map[String, String]] = Optional.Absent, tolerations: Optional[Vector[Toleration]] = Optional.Absent) extends Product with Serializable
Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
- 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.
- 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.
- Alphabetic
- By Inheritance
- Scheduling
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Scheduling(nodeSelector: Optional[Map[String, String]] = Optional.Absent, tolerations: Optional[Vector[Toleration]] = Optional.Absent)
- 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.
- 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.
Value Members
-
def
getNodeSelector: IO[K8sFailure, Map[String, String]]
nodeSelector lists labels that must be present on nodes that support this RuntimeClass.
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.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getTolerations: IO[K8sFailure, Vector[Toleration]]
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.
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.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val nodeSelector: Optional[Map[String, String]]
- val tolerations: Optional[Vector[Toleration]]