Skip to content

Commit 17c3af6

Browse files
authored
Merge pull request #42387 from asa3311/sync-zh-42
[zh] sync sync run-single-instance-stateful-application run-replicated-stateful-application configure-pdb
2 parents 49a9bc8 + 7ea306c commit 17c3af6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

content/zh-cn/docs/tasks/run-application/configure-pdb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,14 @@ Example PDB Using minAvailable:
311311
-->
312312
使用 minAvailable 的 PDB 示例:
313313

314-
{{% codenew file="policy/zookeeper-pod-disruption-budget-minavailable.yaml" %}}
314+
{{% code file="policy/zookeeper-pod-disruption-budget-minavailable.yaml" %}}
315315

316316
<!--
317317
Example PDB Using maxUnavailable:
318318
-->
319319
使用 maxUnavailable 的 PDB 示例:
320320

321-
{{% codenew file="policy/zookeeper-pod-disruption-budget-maxunavailable.yaml" %}}
321+
{{% code file="policy/zookeeper-pod-disruption-budget-maxunavailable.yaml" %}}
322322

323323
<!--
324324
For example, if the above `zk-pdb` object selects the pods of a StatefulSet of size 3, both

content/zh-cn/docs/tasks/run-application/run-replicated-stateful-application.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Create the ConfigMap from the following YAML configuration file:
9898

9999
使用以下的 YAML 配置文件创建 ConfigMap :
100100

101-
{{% codenew file="application/mysql/mysql-configmap.yaml" %}}
101+
{{% code file="application/mysql/mysql-configmap.yaml" %}}
102102

103103
```shell
104104
kubectl apply -f https://k8s.io/examples/application/mysql/mysql-configmap.yaml
@@ -132,7 +132,7 @@ Create the Services from the following YAML configuration file:
132132

133133
使用以下 YAML 配置文件创建服务:
134134

135-
{{% codenew file="application/mysql/mysql-services.yaml" %}}
135+
{{% code file="application/mysql/mysql-services.yaml" %}}
136136

137137
```shell
138138
kubectl apply -f https://k8s.io/examples/application/mysql/mysql-services.yaml
@@ -180,7 +180,7 @@ Finally, create the StatefulSet from the following YAML configuration file:
180180

181181
最后,使用以下 YAML 配置文件创建 StatefulSet:
182182

183-
{{< codenew file="application/mysql/mysql-statefulset.yaml" >}}
183+
{{% code file="application/mysql/mysql-statefulset.yaml" %}}
184184

185185
```shell
186186
kubectl apply -f https://k8s.io/examples/application/mysql/mysql-statefulset.yaml

content/zh-cn/docs/tasks/run-application/run-single-instance-stateful-application.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ for a secure solution.
5858
注意:在配置的 YAML 文件中定义密码的做法是不安全的。具体安全解决方案请参考
5959
[Kubernetes Secrets](/zh-cn/docs/concepts/configuration/secret/)
6060

61-
{{% codenew file="application/mysql/mysql-deployment.yaml" %}}
62-
{{% codenew file="application/mysql/mysql-pv.yaml" %}}
61+
{{% code file="application/mysql/mysql-deployment.yaml" %}}
62+
{{% code file="application/mysql/mysql-pv.yaml" %}}
6363

6464
<!--
6565
1. Deploy the PV and PVC of the YAML file:

0 commit comments

Comments
 (0)