Merge pull request #39570 from kinzhi/kinzhi248

[zh-cn]SYNC labels.md
pull/39663/head^2
Kubernetes Prow Robot 2023-02-25 15:20:17 -08:00 committed by GitHub
commit b372848535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -132,10 +132,10 @@ Valid label value:
* 包含破折号(`-`)、下划线(`_`)、点(`.`)和字母或数字
<!--
For example, here's the configuration file for a Pod that has two labels
For example, here's a manifest for a Pod that has two labels
`environment: production` and `app: nginx`:
-->
例如,这是一个`environment: production``app: nginx` 标签的 Pod 配置文件
例如,以下是一个清单 (manifest),适用于具`environment: production``app: nginx` 这两个标签的 Pod
```yaml
@ -458,8 +458,8 @@ selector:
matchLabels:
component: redis
matchExpressions:
- {key: tier, operator: In, values: [cache]}
- {key: environment, operator: NotIn, values: [dev]}
- { key: tier, operator: In, values: [cache] }
- { key: environment, operator: NotIn, values: [dev] }
```
<!--