NodeSelector
A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.
Fields
- nodeSelectorTerms ([]NodeSelectorTerm)
-
Required. A list of node selector terms. The terms are ORed.
NodeSelectorTerm
A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
- matchExpressions ([]NodeSelectorRequirement)
-
A list of node selector requirements by node's labels.
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- matchExpressions.key (string)
The label key that the selector applies to.
- matchExpressions.operator (string)
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
- matchExpressions.values ([]string)
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
- matchFields ([]NodeSelectorRequirement)
-
A list of node selector requirements by node's fields.
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- matchFields.key (string)
The label key that the selector applies to.
- matchFields.operator (string)
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
- matchFields.values ([]string)
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.