Skip to content

Commit 9f0348e

Browse files
committed
[zh-cn] sync docs/reference/labels-annotations-taints
1 parent d09e3a1 commit 9f0348e

File tree

1 file changed

+31
-5
lines changed
  • content/zh-cn/docs/reference/labels-annotations-taints

1 file changed

+31
-5
lines changed

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

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,33 @@ feature gate must be enabled for this label to be added to pods.
572572
请注意,[PodIndexLabel](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
573573
特性门控必须被启用,才能将此标签添加到 Pod 上。
574574

575+
<!--
576+
### resource.kubernetes.io/pod-claim-name
577+
578+
Type: Annotation
579+
580+
Example: `resource.kubernetes.io/pod-claim-name: "my-pod-claim"`
581+
582+
Used on: ResourceClaim
583+
584+
This annotation is assigned to generated ResourceClaims.
585+
Its value corresponds to the name of the resource claim in the `.spec` of any Pod(s) for which the ResourceClaim was created.
586+
This annotation is an internal implementation detail of [dynamic resource allocation](/docs/concepts/scheduling-eviction/dynamic-resource-allocation/).
587+
You should not need to read or modify the value of this annotation.
588+
-->
589+
### resource.kubernetes.io/pod-claim-name {#resource-kubernetes-io-pod-claim-name}
590+
591+
类别:注解
592+
593+
示例:`resource.kubernetes.io/pod-claim-name: "my-pod-claim"`
594+
595+
用于:ResourceClaim
596+
597+
该注解被赋予自动生成的 ResourceClaim。
598+
注解的值对应于触发 ResourceClaim 创建的 Pod 在 `.spec` 中的资源声明名称。
599+
此注解是[动态资源分配](/zh-cn/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)的内部实现细节。
600+
你不需要读取或修改此注解的值。
601+
575602
<!--
576603
### cluster-autoscaler.kubernetes.io/safe-to-evict
577604
@@ -2373,13 +2400,12 @@ Example: `nginx.ingress.kubernetes.io/configuration-snippet: " more_set_headers
23732400
23742401
Used on: Ingress
23752402
2376-
You can use this annotation to set extra configuration on an Ingress that
2377-
uses the [NGINX Ingress Controller] (https://github.com/kubernetes/ingress-nginx/)
2403+
You can use this annotation to set extra configuration on an Ingress that
2404+
uses the [NGINX Ingress Controller](https://github.com/kubernetes/ingress-nginx/).
23782405
The `configuration-snippet` annotation is ignored
23792406
by default since version 1.9.0 of the ingress controller.
2380-
The NGINX ingress controller setting `allow-snippet-annotations.`
2381-
has to be explicitly enabled to
2382-
use this annotation.
2407+
The NGINX ingress controller setting `allow-snippet-annotations.`
2408+
has to be explicitly enabled to use this annotation.
23832409
Enabling the annotation can be dangerous in a multi-tenant cluster, as it can lead people with otherwise
23842410
limited permissions being able to retrieve all Secrets in the cluster.
23852411
-->

0 commit comments

Comments
 (0)