[zh]Update content/zh/examples/service/networking/minimal-ingress.yaml

This commit is contained in:
wei.wang 2022-04-25 22:05:52 +08:00
parent a49bb7fed1
commit 3af7b0a15f
2 changed files with 6 additions and 1 deletions

View File

@ -362,7 +362,11 @@ The `Redis` Services you applied is only accessible within the Kubernetes cluste
`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你必须将前端服务配置为外部可见的
以便客户端可以从 Kubernetes 集群之外请求服务。

View File

@ -5,6 +5,7 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx-example
rules:
- http:
paths: