Class SchedulingNodeAffinity (1.17.0)

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

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

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
key str
Corresponds to the label key of Node resource. This field is a member of oneof_ _key.
operator str
Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values. This field is a member of oneof_ _operator.
values MutableSequence[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.

Values: UNDEFINED_OPERATOR (0): A value indicating that the enum field is not set. IN (2341): Requires Compute Engine to seek for matched nodes. NOT_IN (161144369): Requires Compute Engine to avoid certain nodes. OPERATOR_UNSPECIFIED (128892924): No description available.