@@ -1491,23 +1491,24 @@ There are two possible values:
14911491
14921492Type : Annotation
14931493
1494- Used on : StatefulSet
1494+ Used on : Service
14951495
1496- This annotation on a Service denotes if the Endpoints controller should go ahead and create
1497- Endpoints for unready Pods. Endpoints of these Services retain their DNS records and continue
1498- receiving traffic for the Service from the moment the kubelet starts all containers in the pod
1499- and marks it _Running_, til the kubelet stops all containers and deletes the pod from
1500- the API server .
1496+ This annotation was formerly used to indicate that the Endpoints controller
1497+ should create Endpoints for unready Pods. Since Kubernetes 1.11, the preferred
1498+ API for this feature has been the `.publishNotReadyAddresses` field on the
1499+ {{< glossary_tooltip term_id="service" >}}. This annotation has no effect in
1500+ Kubernetes {{< skew currentVersion >}} .
15011501-->
15021502# ## service.alpha.kubernetes.io/tolerate-unready-endpoints(已弃用) {#service-alpha-kubernetes-io-tolerate-unready-endpoints-deprecated}
15031503
15041504类别:注解
15051505
1506- 用于:StatefulSet
1506+ 用于:Service
15071507
1508- Service 上的这个注解表示 Endpoints 控制器是否应该继续为未准备好的 Pod 创建 Endpoints。
1509- 这些 Service 的 Endpoints 保留其 DNS 记录,并从 kubelet 启动 Pod 中的所有容器并将其标记为
1510- **Running** 的那一刻起继续接收 Service 的流量,直到 kubelet 停止所有容器并从 API 服务器删除 Pod 为止。
1508+ 此注解以前用于指示 Endpoints 控制器是否应该继续为未准备好的 Pod 创建 Endpoints。
1509+ 自 Kubernetes 1.11 起,此特性的首选 API 是
1510+ {{< glossary_tooltip text="Service" term_id="service" >}} 上的 `.publishNotReadyAddresses` 字段。
1511+ 此注解在 Kubernetes {{< skew currentVersion >}} 中不起作用。
15111512
15121513<!--
15131514# ## autoscaling.alpha.kubernetes.io/behavior (deprecated) {#autoscaling-alpha-kubernetes-io-behavior}
@@ -2430,20 +2431,28 @@ Type: Label
24302431
24312432Example: ` service.kubernetes.io/headless: ""`
24322433
2433- Used on : Endpoints
2434+ Used on : EndpointSlice, Endpoints
24342435
2435- The control plane adds this label to an Endpoints object when the owning Service is headless.
2436- To learn more, read [Headless Services](/docs/concepts/services-networking/service/#headless-services).
2436+ The {{< glossary_tooltip term_id="control-plane" text="control plane" >}} adds
2437+ this {{< glossary_tooltip term_id="label" text="label" >}} to EndpointSlice and
2438+ Endpoints objects when the owning {{< glossary_tooltip term_id="service" >}} is
2439+ headless (as a hint to the service proxy that it can ignore these endpoints). To
2440+ learn more, read [Headless
2441+ Services](/docs/concepts/services-networking/service/#headless-services).
24372442-->
24382443# ## service.kubernetes.io/headless {#servicekubernetesioheadless}
24392444
24402445类别:标签
24412446
24422447示例:`service.kubernetes.io/headless : " " `
24432448
2444- 用于:Endpoints
2449+ 用于:EndpointSlice、 Endpoints
24452450
2446- 当拥有的 Service 是无头类型时,控制平面将此标签添加到 Endpoints 对象。
2451+ 当拥有的 {{< glossary_tooltip text="Service" term_id="service" >}} 是无头类型时,
2452+ (作为对 Service 代理的提示,它可以忽略这些端点),
2453+ {{< glossary_tooltip term_id="control-plane" text="控制平面" >}}
2454+ 会将此{{< glossary_tooltip term_id="label" text="标签" >}}添加到 EndpointSlice 和
2455+ Endpoints 对象中。
24472456更多细节参阅[无头服务](/zh-cn/docs/concepts/services-networking/service/#headless-services)。
24482457
24492458<!--
@@ -2460,30 +2469,12 @@ Used on: Service
24602469用于:Service
24612470
24622471<!--
2463- This annotation was used for enabling _topology aware hints_ on Services. Topology aware
2464- hints have since been renamed: the concept is now called
2465- [topology aware routing](/docs/concepts/services-networking/topology-aware-routing/).
2466- Setting the annotation to ` Auto`, on a Service, configured the Kubernetes control plane to
2467- add topology hints on EndpointSlices associated with that Service. You can also explicitly
2468- set the annotation to `Disabled`.
2469-
2470- If you are running a version of Kubernetes older than {{< skew currentVersion >}},
2471- check the documentation for that Kubernetes version to see how topology aware routing
2472- works in that release.
2473-
2474- There are no other valid values for this annotation. If you don't want topology aware hints
2475- for a Service, don't add this annotation.
2472+ This is a deprecated alias for the
2473+ [` service.kubernetes.io/topology-mode`](#service-kubernetes-io-topology-mode)
2474+ annotation, which has the same functionality.
24762475-->
2477- 此注解曾用于在 Service 中启用**拓扑感知提示(topology aware hints)**。
2478- 然而,拓扑感知提示已经做了更名操作,
2479- 此概念现在名为[拓扑感知路由(topology aware routing)](/zh-cn/docs/concepts/services-networking/topology-aware-routing/)。
2480- 在 Service 上将该注解设置为 `Auto` 会配置 Kubernetes 控制平面,
2481- 以将拓扑提示添加到该 Service 关联的 EndpointSlice 上。你也可以显式地将该注解设置为 `Disabled`。
2482-
2483- 如果你使用的是早于 {{< skew currentVersion >}} 的 Kubernetes 版本,
2484- 请查阅该版本对应的文档,了解其拓扑感知路由的工作方式。
2485-
2486- 此注解没有其他有效值。如果你不希望为 Service 启用拓扑感知提示,不要添加此注解。
2476+ 这是 [`service.kubernetes.io/topology-mode`](#service-kubernetes-io-topology-mode)
2477+ 注解的别名(已弃用),具有与之相同的功能。
24872478
24882479# ## service.kubernetes.io/topology-mode
24892480
@@ -3123,11 +3114,11 @@ how workload management and Pod templating works.
31233114如果你手动在 Pod 上设置此注解,什么都不会发生。这个重启的副作用是工作负载管理和 Pod 模板化的工作方式所造成的。
31243115
31253116<!--
3126- # ## endpoints.kubernetes.io/over-capacity
3117+ # ## endpoints.kubernetes.io/over-capacity (deprecated) {#endpoints-kubernetes-io-over-capacity}
31273118
31283119Type : Annotation
31293120
3130- Example : ` endpoints.kubernetes.io/over-capacity:truncated`
3121+ Example : ` endpoints.kubernetes.io/over-capacity: truncated`
31313122
31323123Used on : Endpoints
31333124
@@ -3139,11 +3130,11 @@ has been truncated to 1000.
31393130
31403131If the number of backend endpoints falls below 1000, the control plane removes this annotation.
31413132-->
3142- # ## endpoints.kubernetes.io/over-capacity {#endpoints-kubernetes-io-over-capacity}
3133+ # ## endpoints.kubernetes.io/over-capacity(已弃用) {#endpoints-kubernetes-io-over-capacity}
31433134
31443135类别:注解
31453136
3146- 例子:`endpoints.kubernetes.io/over-capacity:truncated`
3137+ 例子:`endpoints.kubernetes.io/over-capacity : truncated`
31473138
31483139用于:Endpoints
31493140
@@ -3154,9 +3145,22 @@ If the number of backend endpoints falls below 1000, the control plane removes t
31543145
31553146如果后端端点的数量低于 1000,则控制平面将移除此注解。
31563147
3157- # ## endpoints.kubernetes.io/last-change-trigger-time
3148+ {{< note >}}
3149+ <!--
3150+ The [Endpoints](/docs/reference/kubernetes-api/service-resources/endpoints-v1/)
3151+ API is deprecated in favor of
3152+ [EndpointSlice](/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/).
3153+ A Service can have multiple EndpointSlice objects. As a result, EndpointSlices do not require truncation.
3154+ -->
3155+ [Endpoints](/zh-cn/docs/reference/kubernetes-api/service-resources/endpoints-v1/)
3156+ API 已被弃用,推荐使用
3157+ [EndpointSlice](/zh-cn/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/)。
3158+ 一个 Service 可以拥有多个 EndpointSlice 对象。因此,EndpointSlice 不需要截断。
3159+ {{< /note >}}
31583160
31593161<!--
3162+ # ## endpoints.kubernetes.io/last-change-trigger-time (deprecated) {#endpoints-kubernetes-io-last-change-trigger-time}
3163+
31603164Type : Annotation
31613165
31623166Example : ` endpoints.kubernetes.io/last-change-trigger-time: "2023-07-20T04:45:21Z"`
@@ -3167,6 +3171,8 @@ This annotation set to an [Endpoints](/docs/concepts/services-networking/service
31673171represents the timestamp (The timestamp is stored in RFC 3339 date-time string format. For example, '2018-10-22T19:32:52.1Z'). This is timestamp
31683172of the last change in some Pod or Service object, that triggered the change to the Endpoints object.
31693173-->
3174+ # ## endpoints.kubernetes.io/last-change-trigger-time(已弃用) {#endpoints-kubernetes-io-last-change-trigger-time}
3175+
31703176类别:注解
31713177
31723178例子:`endpoints.kubernetes.io/last-change-trigger-time : " 2023-07-20T04:45:21Z" `
@@ -3177,6 +3183,17 @@ of the last change in some Pod or Service object, that triggered the change to t
31773183表示时间戳(此时间戳以 RFC 3339 日期时间字符串格式存储。例如,“2018-10-22T19:32:52.1Z”)。
31783184这是某个 Pod 或 Service 对象发生变更并触发 Endpoints 对象变更的时间戳。
31793185
3186+ {{< note >}}
3187+ <!--
3188+ The [Endpoints](/docs/reference/kubernetes-api/service-resources/endpoints-v1/)
3189+ API is deprecated in favor of
3190+ [EndpointSlice](/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/).
3191+ -->
3192+ [Endpoints](/zh-cn/docs/reference/kubernetes-api/service-resources/endpoints-v1/)
3193+ API 已被弃用,推荐使用
3194+ [EndpointSlice](/zh-cn/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1/)。
3195+ {{< /note >}}
3196+
31803197<!--
31813198### control-plane.alpha.kubernetes.io/leader (deprecated) {#control-plane-alpha-kubernetes-io-leader}
31823199
@@ -3195,9 +3212,10 @@ Used on: Endpoints
31953212用于:Endpoints
31963213
31973214<!--
3198- The {{< glossary_tooltip text="control plane" term_id="control-plane" >}} previously set annotation on
3199- an [Endpoints](/docs/concepts/services-networking/service/#endpoints) object. This annotation provided
3200- the following detail :
3215+ The {{< glossary_tooltip text="control plane" term_id="control-plane" >}} previously used
3216+ an [Endpoints](/docs/concepts/services-networking/service/#endpoints) object to
3217+ coordinate leader assignment for the Kubernetes control plane. This Endpoints
3218+ object included an annotation with the following detail :
32013219
32023220- Who is the current leader.
32033221- The time when the current leadership was acquired.
@@ -3208,9 +3226,10 @@ the following detail:
32083226Kubernetes now uses [Leases](/docs/concepts/architecture/leases/) to
32093227manage leader assignment for the Kubernetes control plane.
32103228-->
3211- {{< glossary_tooltip text="控制平面" term_id="control-plane" >}}先前在
3212- [Endpoints](/zh-cn/docs/concepts/services-networking/service/#endpoints)
3213- 对象上设置此注解。此注解提供以下细节:
3229+ {{< glossary_tooltip text="控制平面" term_id="control-plane" >}}之前使用
3230+ 一个 [Endpoints](/zh-cn/docs/concepts/services-networking/service/#endpoints)
3231+ 对象来协调 Kubernetes 控制平面的领导者分配。
3232+ 此 Endpoints 对象包含一个带有以下详细信息的注解:
32143233
32153234- 当前的领导者是谁。
32163235- 获取当前领导权的时间。
@@ -3860,15 +3879,15 @@ to 5, the log writes occur 5 seconds apart.
38603879### service.beta.kubernetes.io/aws-load-balancer-access-log-enabled (beta) {#service-beta-kubernetes-io-aws-load-balancer-access-log-enabled}
38613880
38623881<!--
3863- Example: ` service.beta.kubernetes.io/aws-load-balancer-access-log-enabled: "false" `
3882+ Example: ` service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-name: example `
38643883
38653884Used on : Service
38663885
38673886The cloud controller manager integration with AWS elastic load balancing configures
38683887the load balancer for a Service based on this annotation. Access logging is enabled
38693888if you set the annotation to "true".
38703889-->
3871- 示例:`service.beta.kubernetes.io/aws-load-balancer-access-log-enabled : " false " `
3890+ 示例:`service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-name : example `
38723891
38733892用于:Service
38743893
@@ -3878,15 +3897,15 @@ if you set the annotation to "true".
38783897# ## service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-name (beta) {#service-beta-kubernetes-io-aws-load-balancer-access-log-s3-bucket-name}
38793898
38803899<!--
3881- Example: ` service.beta.kubernetes.io/aws-load-balancer-access-log-enabled: example`
3900+ Example : ` service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-prefix: "/ example" `
38823901
38833902Used on : Service
38843903
38853904The cloud controller manager integration with AWS elastic load balancing configures
38863905the load balancer for a Service based on this annotation. The load balancer
38873906writes logs to an S3 bucket with the name you specify.
38883907-->
3889- 示例:`service.beta.kubernetes.io/aws-load-balancer-access-log-enabled : example`
3908+ 示例:`service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-prefix : " / example" `
38903909
38913910用于:Service
38923911
0 commit comments