Skip to content

Commit ac89d4f

Browse files
authored
Merge pull request #39192 from kinzhi/kinzhi231
[zh-cn]Update services-networking/service.md
2 parents a84f5ab + 62bf125 commit ac89d4f

File tree

1 file changed

+5
-6
lines changed
  • content/zh-cn/docs/concepts/services-networking

1 file changed

+5
-6
lines changed

content/zh-cn/docs/concepts/services-networking/service.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,7 @@ managed by Kubernetes' own control plane.
391391
#### Accessing a Service without a selector {#service-no-selector-access}
392392

393393
Accessing a Service without a selector works the same as if it had a selector.
394-
In the [example](#services-without-selectors) for a Service without a selector,
395-
traffic is routed to one of the two endpoints defined in
394+
In the [example](#services-without-selectors) for a Service without a selector, traffic is routed to one of the two endpoints defined in
396395
the EndpointSlice manifest: a TCP connection to 10.1.2.3 or 10.4.5.6, on port 9376.
397396
-->
398397
#### 访问没有选择算符的 Service {#service-no-selector-access}
@@ -804,7 +803,7 @@ Kubernetes `ServiceTypes` 允许指定你所需要的 Service 类型。
804803
* `ClusterIP`: Exposes the Service on a cluster-internal IP. Choosing this value
805804
makes the Service only reachable from within the cluster. This is the
806805
default that is used if you don't explicitly specify a `type` for a Service.
807-
You can expose the service to the public with an [Ingress](docs/reference/kubernetes-api/service-resources/ingress-v1/) or the
806+
You can expose the service to the public with an [Ingress](/docs/concepts/services-networking/ingress/) or the
808807
[Gateway API](https://gateway-api.sigs.k8s.io/).
809808
* [`NodePort`](#type-nodeport): Exposes the Service on each Node's IP at a static port
810809
(the `NodePort`).
@@ -818,7 +817,7 @@ Kubernetes `ServiceTypes` 允许指定你所需要的 Service 类型。
818817
-->
819818
* `ClusterIP`:通过集群的内部 IP 暴露服务,选择该值时服务只能够在集群内部访问。
820819
这也是你没有为服务显式指定 `type` 时使用的默认值。
821-
你可以使用 [Ingress](/zh-cn/docs/reference/kubernetes-api/service-resources/ingress-v1/)
820+
你可以使用 [Ingress](/zh-cn/docs/concepts/services-networking/ingress/)
822821
或者 [Gateway API](https://gateway-api.sigs.k8s.io/) 向公众暴露服务。
823822
* [`NodePort`](#type-nodeport):通过每个节点上的 IP 和静态端口(`NodePort`)暴露服务。
824823
为了让节点端口可用,Kubernetes 设置了集群 IP 地址,这等同于你请求 `type: ClusterIP` 的服务。
@@ -1124,7 +1123,7 @@ cloud provider does not support mixed protocols they will provide only a single
11241123
{{< feature-state for_k8s_version="v1.24" state="stable" >}}
11251124

11261125
<!--
1127-
Starting in v1.20, you can optionally disable node port allocation for a Service Type=LoadBalancer by setting
1126+
You can optionally disable node port allocation for a Service of `type=LoadBalancer`, by setting
11281127
the field `spec.allocateLoadBalancerNodePorts` to `false`. This should only be used for load balancer implementations
11291128
that route traffic directly to pods as opposed to using node ports. By default, `spec.allocateLoadBalancerNodePorts`
11301129
is `true` and type LoadBalancer Services will continue to allocate node ports. If `spec.allocateLoadBalancerNodePorts`
@@ -1626,7 +1625,7 @@ the NLB Target Group's health check on the auto-assigned
16261625
`.spec.healthCheckNodePort` 进行 NLB 目标组的运行状况检查,并且不会收到任何流量。
16271626

16281627
<!--
1629-
In order to achieve even traffic, either use a DaemonSet, or specify a
1628+
In order to achieve even traffic, either use a DaemonSet or specify a
16301629
[pod anti-affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)
16311630
to not locate on the same node.
16321631

0 commit comments

Comments
 (0)