Skip to content

Commit 30cef36

Browse files
authored
Merge pull request #39179 from gaogao101/work74
[zh-cn] services-networking/service.md
2 parents 601bc11 + 15fa015 commit 30cef36

File tree

1 file changed

+4
-0
lines changed
  • content/zh-cn/docs/concepts/services-networking

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,8 @@ Kubernetes `ServiceTypes` 允许指定你所需要的 Service 类型。
804804
* `ClusterIP`: Exposes the Service on a cluster-internal IP. Choosing this value
805805
makes the Service only reachable from within the cluster. This is the
806806
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
808+
[Gateway API](https://gateway-api.sigs.k8s.io/).
807809
* [`NodePort`](#type-nodeport): Exposes the Service on each Node's IP at a static port
808810
(the `NodePort`).
809811
To make the node port available, Kubernetes sets up a cluster IP address,
@@ -816,6 +818,8 @@ Kubernetes `ServiceTypes` 允许指定你所需要的 Service 类型。
816818
-->
817819
* `ClusterIP`:通过集群的内部 IP 暴露服务,选择该值时服务只能够在集群内部访问。
818820
这也是你没有为服务显式指定 `type` 时使用的默认值。
821+
你可以使用 [Ingress](/zh-cn/docs/reference/kubernetes-api/service-resources/ingress-v1/)
822+
或者 [Gateway API](https://gateway-api.sigs.k8s.io/) 向公众暴露服务。
819823
* [`NodePort`](#type-nodeport):通过每个节点上的 IP 和静态端口(`NodePort`)暴露服务。
820824
为了让节点端口可用,Kubernetes 设置了集群 IP 地址,这等同于你请求 `type: ClusterIP` 的服务。
821825
* [`LoadBalancer`](#loadbalancer):使用云提供商的负载均衡器向外部暴露服务。

0 commit comments

Comments
 (0)