@@ -85,7 +85,7 @@ The manifest file, included below, specifies a Deployment controller that runs a
85
85
-->
86
86
下面包含的清单文件指定了一个 Deployment 控制器,该控制器运行一个 Redis Pod 副本。
87
87
88
- {{< codenew file="application/guestbook/redis-leader-deployment.yaml" >}}
88
+ {{< code file="application/guestbook/redis-leader-deployment.yaml" >}}
89
89
90
90
<!--
91
91
1. Launch a terminal window in the directory you downloaded the manifest files.
@@ -146,7 +146,7 @@ Pods.
146
146
[ Service] ( /zh-cn/docs/concepts/services-networking/service/ ) 来转发 Redis Pod
147
147
的流量。Service 定义了访问 Pod 的策略。
148
148
149
- {{< codenew file="application/guestbook/redis-leader-service.yaml" >}}
149
+ {{< code file="application/guestbook/redis-leader-service.yaml" >}}
150
150
151
151
<!--
152
152
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.
203
203
尽管 Redis 领导者只有一个 Pod,你可以通过添加若干 Redis 跟随者来将其配置为高可用状态,
204
204
以满足流量需求。
205
205
206
- {{< codenew file="application/guestbook/redis-follower-deployment.yaml" >}}
206
+ {{< code file="application/guestbook/redis-follower-deployment.yaml" >}}
207
207
208
208
<!--
209
209
1. Apply the Redis Deployment from the following `redis-follower-deployment.yaml` file:
@@ -253,7 +253,7 @@ Guestbook 应用需要与 Redis 跟随者通信以读取数据。
253
253
为了让 Redis 跟随者可被发现,你必须创建另一个
254
254
[ Service] ( /zh-cn/docs/concepts/services-networking/service/ ) 。
255
255
256
- {{< codenew file="application/guestbook/redis-follower-service.yaml" >}}
256
+ {{< code file="application/guestbook/redis-follower-service.yaml" >}}
257
257
258
258
<!--
259
259
1. Apply the Redis Service from the following `redis-follower-service.yaml` file:
@@ -330,7 +330,7 @@ Guestbook 应用使用 PHP 前端。该前端被配置成与后端的 Redis 跟
330
330
-->
331
331
### 创建 Guestbook 前端 Deployment {#creating-the-guestbook-frontend-deployment}
332
332
333
- {{< codenew file="application/guestbook/frontend-deployment.yaml" >}}
333
+ {{< code file="application/guestbook/frontend-deployment.yaml" >}}
334
334
335
335
<!--
336
336
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`.
406
406
只需取消注释 ` type: LoadBalancer ` 。
407
407
{{< /note >}}
408
408
409
- {{< codenew file="application/guestbook/frontend-service.yaml" >}}
409
+ {{< code file="application/guestbook/frontend-service.yaml" >}}
410
410
411
411
<!--
412
412
1. Apply the frontend Service from the `frontend-service.yaml` file:
0 commit comments