@@ -14,11 +14,11 @@ no_list: true
14
14
15
15
<!-- overview -->
16
16
<!--
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 .
18
18
19
19
This document serves both as a reference to the values and as a coordination point for assigning values.
20
20
-->
21
- Kubernetes 将所有标签和注解保留在 kubernetes.io Namespace中 。
21
+ Kubernetes 将所有标签和注解保留在 kubernetes.io 和 k8s.io 名字空间中 。
22
22
23
23
本文档既可作为值的参考,也可作为分配值的协调点。
24
24
@@ -36,7 +36,7 @@ The component within the architecture.
36
36
37
37
One of the [recommended labels](/docs/concepts/overview/working-with-objects/common-labels/#labels).
38
38
-->
39
- ## API 对象上使用的标签、注解和污点
39
+ ## API 对象上使用的标签、注解和污点 {#labels-annotations-and-taints-used-on-api-objects}
40
40
41
41
### app.kubernetes.io/component {#app-kubernetes-io-component}
42
42
@@ -49,25 +49,28 @@ One of the [recommended labels](/docs/concepts/overview/working-with-objects/com
49
49
[ 推荐标签] ( /zh-cn/docs/concepts/overview/working-with-objects/common-labels/#labels ) 之一。
50
50
51
51
<!--
52
- ### app.kubernetes.io/created-by
52
+ ### app.kubernetes.io/created-by (deprecated)
53
53
54
54
Example: `app.kubernetes.io/created-by: "controller-manager"`
55
55
56
56
Used on: All Objects
57
57
58
58
The controller/user who created this resource.
59
-
60
- One of the [recommended labels](/docs/concepts/overview/working-with-objects/common-labels/#labels).
61
59
-->
62
- ### app.kubernetes.io/created-by {#app-kubernetes-io-created-by}
60
+ ### app.kubernetes.io/created-by(已弃用) {#app-kubernetes-io-created-by}
63
61
64
62
示例:` app.kubernetes.io/created-by: "controller-manager" `
65
63
66
64
用于:所有对象
67
65
68
66
创建此资源的控制器/用户。
69
67
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 >}}
71
74
72
75
<!--
73
76
### app.kubernetes.io/instance
@@ -122,7 +125,6 @@ The name of the application.
122
125
123
126
One of the [recommended labels](/docs/concepts/overview/working-with-objects/common-labels/#labels).
124
127
-->
125
-
126
128
### app.kubernetes.io/name {#app-kubernetes-io-name}
127
129
128
130
示例:` app.kubernetes.io/name: "mysql" `
@@ -175,6 +177,29 @@ One of the [recommended labels](/docs/concepts/overview/working-with-objects/com
175
177
176
178
[ 推荐标签] ( /zh-cn/docs/concepts/overview/working-with-objects/common-labels/#labels ) 之一。
177
179
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
+
178
203
<!--
179
204
### kubernetes.io/arch
180
205
0 commit comments