Skip to main content

ApplyInterruptibleNodeAffinity

Configures the node-affinity for the pod using the configuration specified.

def ApplyInterruptibleNodeAffinity(
interruptible: bool,
podSpec: *v1.PodSpec
)

Configures the node-affinity for the pod using the specified configuration.

Parameters

NameTypeDescription
interruptibleboolA boolean value indicating whether the node affinity should be configured for interruptible nodes.
podSpec*v1.PodSpecA pointer to the PodSpec object to which the node affinity configuration will be applied.