Skip to content

Commit 97907e9

Browse files
authored
Merge pull request #36792 from windsonsea/labann
[zh]Sync labels-annotations-taints/_index.md
2 parents e54a8fe + d45a7c2 commit 97907e9

File tree

1 file changed

+34
-9
lines changed
  • content/zh-cn/docs/reference/labels-annotations-taints

1 file changed

+34
-9
lines changed

content/zh-cn/docs/reference/labels-annotations-taints/_index.md

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ no_list: true
1414

1515
<!-- overview -->
1616
<!--
17-
Kubernetes reserves all labels and annotations in the kubernetes.io namespace.
17+
Kubernetes reserves all labels and annotations in the kubernetes.io and k8s.io namespaces.
1818
1919
This document serves both as a reference to the values and as a coordination point for assigning values.
2020
-->
21-
Kubernetes 将所有标签和注解保留在 kubernetes.io Namespace中
21+
Kubernetes 将所有标签和注解保留在 kubernetes.io 和 k8s.io 名字空间中
2222

2323
本文档既可作为值的参考,也可作为分配值的协调点。
2424

@@ -36,7 +36,7 @@ The component within the architecture.
3636
3737
One of the [recommended labels](/docs/concepts/overview/working-with-objects/common-labels/#labels).
3838
-->
39-
## API 对象上使用的标签、注解和污点
39+
## API 对象上使用的标签、注解和污点 {#labels-annotations-and-taints-used-on-api-objects}
4040

4141
### app.kubernetes.io/component {#app-kubernetes-io-component}
4242

@@ -49,25 +49,28 @@ One of the [recommended labels](/docs/concepts/overview/working-with-objects/com
4949
[推荐标签](/zh-cn/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
5050

5151
<!--
52-
### app.kubernetes.io/created-by
52+
### app.kubernetes.io/created-by (deprecated)
5353
5454
Example: `app.kubernetes.io/created-by: "controller-manager"`
5555
5656
Used on: All Objects
5757
5858
The controller/user who created this resource.
59-
60-
One of the [recommended labels](/docs/concepts/overview/working-with-objects/common-labels/#labels).
6159
-->
62-
### app.kubernetes.io/created-by {#app-kubernetes-io-created-by}
60+
### app.kubernetes.io/created-by(已弃用) {#app-kubernetes-io-created-by}
6361

6462
示例:`app.kubernetes.io/created-by: "controller-manager"`
6563

6664
用于:所有对象
6765

6866
创建此资源的控制器/用户。
6967

70-
[推荐标签](/zh-cn/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
68+
{{< note >}}
69+
<!--
70+
Starting from v1.9, this label is deprecated.
71+
-->
72+
从 v1.9 开始,这个标签被弃用。
73+
{{< /note >}}
7174

7275
<!--
7376
### app.kubernetes.io/instance
@@ -122,7 +125,6 @@ The name of the application.
122125
123126
One of the [recommended labels](/docs/concepts/overview/working-with-objects/common-labels/#labels).
124127
-->
125-
126128
### app.kubernetes.io/name {#app-kubernetes-io-name}
127129

128130
示例:`app.kubernetes.io/name: "mysql"`
@@ -175,6 +177,29 @@ One of the [recommended labels](/docs/concepts/overview/working-with-objects/com
175177

176178
[推荐标签](/zh-cn/docs/concepts/overview/working-with-objects/common-labels/#labels)之一。
177179

180+
<!--
181+
### cluster-autoscaler.kubernetes.io/safe-to-evict
182+
183+
Example: `cluster-autoscaler.kubernetes.io/safe-to-evict: "true"`
184+
185+
Used on: Pod
186+
187+
When this annotation is set to `"true"`, the cluster autoscaler is allowed to evict a Pod
188+
even if other rules would normally prevent that.
189+
The cluster autoscaler never evicts Pods that have this annotation explicitly set to
190+
`"false"`; you could set that on an important Pod that you want to keep running.
191+
If this annotation is not set then the cluster autoscaler follows its Pod-level behavior.
192+
-->
193+
### cluster-autoscaler.kubernetes.io/safe-to-evict {#cluster-autoscaler-safe-to-evict}
194+
195+
例子:`cluster-autoscaler.kubernetes.io/safe-to-evict: "true"`
196+
197+
用于:Pod
198+
199+
当这个注解设置为 `"true"` 时,即使其他规则通常会阻止驱逐操作,也会允许该集群自动扩缩器驱逐一个 Pod。
200+
集群自动扩缩器从不驱逐将此注解显式设置为 `"false"` 的 Pod;你可以针对要保持运行的重要 Pod 设置此注解。
201+
如果未设置此注解,则集群自动扩缩器将遵循其 Pod 级别的行为。
202+
178203
<!--
179204
### kubernetes.io/arch
180205

0 commit comments

Comments
 (0)