Skip to content

Commit a31d59f

Browse files
committed
sync tutorials/stateless-application/guestbook.md
Signed-off-by: bzsuni <[email protected]>
1 parent 8b07bec commit a31d59f

File tree

1 file changed

+6
-6
lines changed
  • content/zh-cn/docs/tutorials/stateless-application

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The manifest file, included below, specifies a Deployment controller that runs a
8585
-->
8686
下面包含的清单文件指定了一个 Deployment 控制器,该控制器运行一个 Redis Pod 副本。
8787

88-
{{< codenew file="application/guestbook/redis-leader-deployment.yaml" >}}
88+
{{< code file="application/guestbook/redis-leader-deployment.yaml" >}}
8989

9090
<!--
9191
1. Launch a terminal window in the directory you downloaded the manifest files.
@@ -146,7 +146,7 @@ Pods.
146146
[Service](/zh-cn/docs/concepts/services-networking/service/) 来转发 Redis Pod
147147
的流量。Service 定义了访问 Pod 的策略。
148148

149-
{{< codenew file="application/guestbook/redis-leader-service.yaml" >}}
149+
{{< code file="application/guestbook/redis-leader-service.yaml" >}}
150150

151151
<!--
152152
1. Apply the Redis Service from the following `redis-leader-service.yaml` file:
@@ -203,7 +203,7 @@ and meet traffic demands by adding a few Redis followers, or replicas.
203203
尽管 Redis 领导者只有一个 Pod,你可以通过添加若干 Redis 跟随者来将其配置为高可用状态,
204204
以满足流量需求。
205205

206-
{{< codenew file="application/guestbook/redis-follower-deployment.yaml" >}}
206+
{{< code file="application/guestbook/redis-follower-deployment.yaml" >}}
207207

208208
<!--
209209
1. Apply the Redis Deployment from the following `redis-follower-deployment.yaml` file:
@@ -253,7 +253,7 @@ Guestbook 应用需要与 Redis 跟随者通信以读取数据。
253253
为了让 Redis 跟随者可被发现,你必须创建另一个
254254
[Service](/zh-cn/docs/concepts/services-networking/service/)
255255

256-
{{< codenew file="application/guestbook/redis-follower-service.yaml" >}}
256+
{{< code file="application/guestbook/redis-follower-service.yaml" >}}
257257

258258
<!--
259259
1. Apply the Redis Service from the following `redis-follower-service.yaml` file:
@@ -330,7 +330,7 @@ Guestbook 应用使用 PHP 前端。该前端被配置成与后端的 Redis 跟
330330
-->
331331
### 创建 Guestbook 前端 Deployment {#creating-the-guestbook-frontend-deployment}
332332

333-
{{< codenew file="application/guestbook/frontend-deployment.yaml" >}}
333+
{{< code file="application/guestbook/frontend-deployment.yaml" >}}
334334

335335
<!--
336336
1. Apply the frontend Deployment from the `frontend-deployment.yaml` file:
@@ -406,7 +406,7 @@ balancers and you want to use it, uncomment `type: LoadBalancer`.
406406
只需取消注释 `type: LoadBalancer`
407407
{{< /note >}}
408408

409-
{{< codenew file="application/guestbook/frontend-service.yaml" >}}
409+
{{< code file="application/guestbook/frontend-service.yaml" >}}
410410

411411
<!--
412412
1. Apply the frontend Service from the `frontend-service.yaml` file:

0 commit comments

Comments
 (0)