[zh]Update content/zh/examples/service/networking/minimal-ingress.yaml
This commit is contained in:
@@ -362,7 +362,11 @@ The `Redis` Services you applied is only accessible within the Kubernetes cluste
|
|||||||
`ClusterIP` 为服务指向的 Pod 集提供一个 IP 地址。这个 IP 地址只能在集群中访问。
|
`ClusterIP` 为服务指向的 Pod 集提供一个 IP 地址。这个 IP 地址只能在集群中访问。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
If you want guests to be able to access your guestbook, you must configure the frontend Service to be externally visible, so a client can request the Service from outside the Kubernetes cluster. However a Kubernetes user you can use `kubectl port-forward` to access the service even though it uses a `ClusterIP`.
|
If you want guests to be able to access your guestbook, you must configure the
|
||||||
|
frontend Service to be externally visible, so a client can request the Service
|
||||||
|
from outside the Kubernetes cluster. However a Kubernetes user can use
|
||||||
|
`kubectl port-forward` to access the service even though it uses a
|
||||||
|
`ClusterIP`.
|
||||||
-->
|
-->
|
||||||
如果你希望访客能够访问你的 Guestbook,你必须将前端服务配置为外部可见的,
|
如果你希望访客能够访问你的 Guestbook,你必须将前端服务配置为外部可见的,
|
||||||
以便客户端可以从 Kubernetes 集群之外请求服务。
|
以便客户端可以从 Kubernetes 集群之外请求服务。
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||||
spec:
|
spec:
|
||||||
|
ingressClassName: nginx-example
|
||||||
rules:
|
rules:
|
||||||
- http:
|
- http:
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
Reference in New Issue
Block a user