Class SchedulingNodeAffinity (0.5.0)

SchedulingNodeAffinity(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.

Attributes

NameDescription
key str
Corresponds to the label key of Node resource.
operator google.cloud.compute_v1.types.SchedulingNodeAffinity.Operator
Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
values Sequence[str]
Corresponds to the label values of Node resource.

Classes

Operator

Operator(value)

Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.