Files
shixiuguo d1ea334a70 Translate docs/reference/kubernetes-api/common-definitions/node-selector-requirement.md into Chinese (#32038)
* Translate node-selector-requirement.md into Chinese

* Modify as suggested

* Modify according to the review results

* 删除文档中注释的部分

* Translate node-selector-requirement.md into Chinese

Modify according to the review results
2022-03-23 17:46:41 -07:00

2.2 KiB
Executable File

api_metadata, content_type, description, title, weight, auto_generated
api_metadata content_type description title weight auto_generated
apiVersion import kind
k8s.io/api/core/v1 NodeSelectorRequirement
api_reference 节点选择器是要求包含键、值和关联键和值的运算符的选择器 NodeSelectorRequirement 5 true

import "k8s.io/api/core/v1"

节点选择器是要求包含键、值和关联键和值的运算符的选择器。


  • key (string), 必选

    选择器适用的标签键。

  • operator (string), 必选

    表示键与一组值的关系的运算符。有效的运算符包括:In、NotIn、Exists、DoesNotExist、Gt 和 Lt。

    可选值:

    • "DoesNotExist"
    • "Exists"
    • "Gt"
    • "In"
    • "Lt"
    • "NotIn"
  • values ([]string)

    字符串数组。如果运算符为 In 或 NotIn,则数组必须为非空。 如果运算符为 Exists 或 DoesNotExist,则数组必须为空。 如果运算符为 Gt 或 Lt,则数组必须有一个元素,该元素将被译为整数。 该数组在合并计划补丁时将被替换。