From 3af7b0a15f435895e50ed3a99286a59a26b5af0f Mon Sep 17 00:00:00 2001 From: "wei.wang" Date: Mon, 25 Apr 2022 22:05:52 +0800 Subject: [PATCH] [zh]Update content/zh/examples/service/networking/minimal-ingress.yaml --- .../zh/docs/tutorials/stateless-application/guestbook.md | 6 +++++- content/zh/examples/service/networking/minimal-ingress.yaml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/content/zh/docs/tutorials/stateless-application/guestbook.md b/content/zh/docs/tutorials/stateless-application/guestbook.md index 7482890aa2..b5b9003db5 100644 --- a/content/zh/docs/tutorials/stateless-application/guestbook.md +++ b/content/zh/docs/tutorials/stateless-application/guestbook.md @@ -362,7 +362,11 @@ The `Redis` Services you applied is only accessible within the Kubernetes cluste `ClusterIP` 为服务指向的 Pod 集提供一个 IP 地址。这个 IP 地址只能在集群中访问。 如果你希望访客能够访问你的 Guestbook,你必须将前端服务配置为外部可见的, 以便客户端可以从 Kubernetes 集群之外请求服务。 diff --git a/content/zh/examples/service/networking/minimal-ingress.yaml b/content/zh/examples/service/networking/minimal-ingress.yaml index 76640b9447..55a5837510 100644 --- a/content/zh/examples/service/networking/minimal-ingress.yaml +++ b/content/zh/examples/service/networking/minimal-ingress.yaml @@ -5,6 +5,7 @@ metadata: annotations: nginx.ingress.kubernetes.io/rewrite-target: / spec: + ingressClassName: nginx-example rules: - http: paths: