|
| 1 | +--- |
| 2 | +api_metadata: |
| 3 | + apiVersion: "" |
| 4 | + import: "k8s.io/api/core/v1" |
| 5 | + kind: "NodeSelectorRequirement" |
| 6 | +content_type: "api_reference" |
| 7 | +description: "节点选择器是要求包含键、值和关联键和值的运算符的选择器" |
| 8 | +title: "NodeSelectorRequirement" |
| 9 | +weight: 5 |
| 10 | +auto_generated: true |
| 11 | +--- |
| 12 | +<!-- |
| 13 | +--- |
| 14 | +api_metadata: |
| 15 | + apiVersion: "" |
| 16 | + import: "k8s.io/api/core/v1" |
| 17 | + kind: "NodeSelectorRequirement" |
| 18 | +content_type: "api_reference" |
| 19 | +description: "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values." |
| 20 | +title: "NodeSelectorRequirement" |
| 21 | +weight: 5 |
| 22 | +auto_generated: true |
| 23 | +--- |
| 24 | +--> |
| 25 | + |
| 26 | +`import "k8s.io/api/core/v1"` |
| 27 | + |
| 28 | + |
| 29 | +<!-- |
| 30 | +A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. |
| 31 | +--> |
| 32 | + 节点选择器是要求包含键、值和关联键和值的运算符的选择器。 |
| 33 | + |
| 34 | +<hr> |
| 35 | + |
| 36 | +<!-- |
| 37 | +- **key** (string), required |
| 38 | + |
| 39 | + The label key that the selector applies to. |
| 40 | +--> |
| 41 | +- **key** (string), 必选 |
| 42 | + |
| 43 | + 选择器适用的标签键。 |
| 44 | + |
| 45 | +<!-- |
| 46 | +- **operator** (string), required |
| 47 | +
|
| 48 | + Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. |
| 49 | +
|
| 50 | + Possible enum values: |
| 51 | + - `"DoesNotExist"` |
| 52 | + - `"Exists"` |
| 53 | + - `"Gt"` |
| 54 | + - `"In"` |
| 55 | + - `"Lt"` |
| 56 | + - `"NotIn"` |
| 57 | +--> |
| 58 | +- **operator** (string), 必选 |
| 59 | + |
| 60 | + 表示键与一组值的关系的运算符。有效的运算符包括:In、NotIn、Exists、DoesNotExist、Gt 和 Lt。 |
| 61 | + |
| 62 | + 可选值: |
| 63 | + - `"DoesNotExist"` |
| 64 | + - `"Exists"` |
| 65 | + - `"Gt"` |
| 66 | + - `"In"` |
| 67 | + - `"Lt"` |
| 68 | + - `"NotIn"` |
| 69 | + |
| 70 | +<!-- |
| 71 | +- **values** ([]string) |
| 72 | +
|
| 73 | + 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. |
| 74 | +--> |
| 75 | +- **values** ([]string) |
| 76 | + |
| 77 | + 字符串数组。如果运算符为 In 或 NotIn,则数组必须为非空。 |
| 78 | + 如果运算符为 Exists 或 DoesNotExist,则数组必须为空。 |
| 79 | + 如果运算符为 Gt 或 Lt,则数组必须有一个元素,该元素将被译为整数。 |
| 80 | + 该数组在合并计划补丁时将被替换。 |
| 81 | + |
| 82 | + |
0 commit comments