You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh-cn/docs/reference/kubernetes-api/service-resources/endpoint-slice-v1.md
+44-23Lines changed: 44 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,14 +41,10 @@ EndpointSlice 是实现某 Service 的端点的子集。一个 Service 可以有
41
41
-**addressType** (string), <!--required-->必需
42
42
43
43
<!--
44
-
addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation.
44
+
addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.
The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.
51
-
-->
52
48
目前支持的地址类型为:
53
49
54
50
* IPv4:表示 IPv4 地址。
@@ -109,17 +105,18 @@ EndpointSlice 是实现某 Service 的端点的子集。一个 Service 可以有
109
105
-**endpoints.conditions.ready** (boolean)
110
106
111
107
<!--
112
-
ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints.
108
+
ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.
Serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.
119
+
serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.
123
120
-->
124
121
125
122
serving 和 ready 非常相似。唯一的不同在于,
@@ -139,7 +136,7 @@ EndpointSlice 是实现某 Service 的端点的子集。一个 Service 可以有
deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.
139
+
deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.
143
140
-->
144
141
145
142
deprecatedTopology 包含 v1beta1 API 的拓扑信息部分。目前已经弃用了此字段,
@@ -255,26 +252,26 @@ EndpointSlice 是实现某 Service 的端点的子集。一个 Service 可以有
255
252
-**ports.port** (int32)
256
253
257
254
<!--
258
-
The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.
255
+
port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.
259
256
-->
260
257
261
-
端点的端口号。如果未指定,就不限制端口,且必须根据消费者的具体环境进行解释。
258
+
port 表示端点的端口号。如果未指定,就不限制端口,且必须根据消费者的具体环境进行解释。
262
259
263
260
-**ports.protocol** (string)
264
261
265
262
<!--
266
-
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.
263
+
protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.
267
264
-->
268
265
269
-
此端口的 IP 协议。必须为 UDP、TCP 或 SCTP。默认为 TCP。
266
+
protocol 表示此端口的 IP 协议。必须为 UDP、TCP 或 SCTP。默认为 TCP。
270
267
271
268
-**ports.name** (string)
272
269
273
270
<!--
274
-
The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.
271
+
name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.
275
272
-->
276
273
277
-
此端口的名称。EndpointSlice 中所有端口的名称都不得重复。
274
+
name 表示此端口的名称。EndpointSlice 中所有端口的名称都不得重复。
278
275
如果 EndpointSlice 是基于 Kubernetes Service 创建的,
279
276
那么此端口的名称和 Service.ports[].name 字段的值一致。默认为空字符串。
280
277
名称必须是空字符串,或者必须通过 DNS_LABEL 验证:
@@ -286,12 +283,25 @@ EndpointSlice 是实现某 Service 的端点的子集。一个 Service 可以有
286
283
-**ports.appProtocol** (string)
287
284
288
285
<!--
289
-
The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.
290
-
-->
286
+
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:
287
+
288
+
* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).
0 commit comments