Skip to content

Commit 3af7b0a

Browse files
committed
[zh]Update content/zh/examples/service/networking/minimal-ingress.yaml
1 parent a49bb7f commit 3af7b0a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

content/zh/docs/tutorials/stateless-application/guestbook.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,11 @@ The `Redis` Services you applied is only accessible within the Kubernetes cluste
362362
`ClusterIP` 为服务指向的 Pod 集提供一个 IP 地址。这个 IP 地址只能在集群中访问。
363363
364364
<!--
365-
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`.
365+
If you want guests to be able to access your guestbook, you must configure the
366+
frontend Service to be externally visible, so a client can request the Service
367+
from outside the Kubernetes cluster. However a Kubernetes user can use
368+
`kubectl port-forward` to access the service even though it uses a
369+
`ClusterIP`.
366370
-->
367371
如果你希望访客能够访问你的 Guestbook,你必须将前端服务配置为外部可见的,
368372
以便客户端可以从 Kubernetes 集群之外请求服务。

content/zh/examples/service/networking/minimal-ingress.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
annotations:
66
nginx.ingress.kubernetes.io/rewrite-target: /
77
spec:
8+
ingressClassName: nginx-example
89
rules:
910
- http:
1011
paths:

0 commit comments

Comments
 (0)