[zh]Update content/zh/examples/service/networking/minimal-ingress.yaml
This commit is contained in:
parent
a49bb7fed1
commit
3af7b0a15f
|
|
@ -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 集群之外请求服务。
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ metadata:
|
|||
annotations:
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||
spec:
|
||||
ingressClassName: nginx-example
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
|
|
|
|||
Loading…
Reference in New Issue