Class NodeAffinity (2.41.0)

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

Specifies the NodeAffinity key, values, and affinity operator according to shared sole tenant node group affinities <https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity>__.

Attributes

NameDescription
key str
Key for NodeAffinity.
operator google.cloud.container_v1.types.SoleTenantConfig.NodeAffinity.Operator
Operator for NodeAffinity.
values MutableSequence[str]
Values for NodeAffinity.

Classes

Operator

Operator(value)

Operator allows user to specify affinity or anti-affinity for the given key values.

Values: OPERATOR_UNSPECIFIED (0): Invalid or unspecified affinity operator. IN (1): Affinity operator. NOT_IN (2): Anti-affinity operator.