File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
content/zh-cn/docs/concepts/services-networking Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -804,6 +804,8 @@ Kubernetes `ServiceTypes` 允许指定你所需要的 Service 类型。
804
804
* `ClusterIP`: Exposes the Service on a cluster-internal IP. Choosing this value
805
805
makes the Service only reachable from within the cluster. This is the
806
806
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/).
807
809
* [`NodePort`](#type-nodeport): Exposes the Service on each Node's IP at a static port
808
810
(the `NodePort`).
809
811
To make the node port available, Kubernetes sets up a cluster IP address,
@@ -816,6 +818,8 @@ Kubernetes `ServiceTypes` 允许指定你所需要的 Service 类型。
816
818
-->
817
819
* `ClusterIP`:通过集群的内部 IP 暴露服务,选择该值时服务只能够在集群内部访问。
818
820
这也是你没有为服务显式指定 `type` 时使用的默认值。
821
+ 你可以使用 [Ingress](/zh-cn/docs/reference/kubernetes-api/service-resources/ingress-v1/)
822
+ 或者 [Gateway API](https://gateway-api.sigs.k8s.io/) 向公众暴露服务。
819
823
* [`NodePort`](#type-nodeport):通过每个节点上的 IP 和静态端口(`NodePort`)暴露服务。
820
824
为了让节点端口可用,Kubernetes 设置了集群 IP 地址,这等同于你请求 `type : ClusterIP` 的服务。
821
825
* [`LoadBalancer`](#loadbalancer):使用云提供商的负载均衡器向外部暴露服务。
You can’t perform that action at this time.
0 commit comments