SchedulingArgs

data class SchedulingArgs(val nodeSelector: Output<Map<String, String>>? = null, val tolerations: Output<List<TolerationArgs>>? = null) : ConvertibleToJava<SchedulingArgs>

Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.

Constructors

Link copied to clipboard
fun SchedulingArgs(nodeSelector: Output<Map<String, String>>? = null, tolerations: Output<List<TolerationArgs>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): SchedulingArgs

Properties

Link copied to clipboard
val nodeSelector: Output<Map<String, String>>? = null

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.

Link copied to clipboard
val tolerations: Output<List<TolerationArgs>>? = null

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.