Class NodeAffinity (2.54.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

Name Description
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.