Merge pull request #42387 from asa3311/sync-zh-42

[zh] sync sync run-single-instance-stateful-application run-replicated-stateful-application configure-pdb
pull/42388/head
Kubernetes Prow Robot 2023-08-04 08:28:26 -07:00 committed by GitHub
commit 17c3af6339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -311,14 +311,14 @@ Example PDB Using minAvailable:
-->
使用 minAvailable 的 PDB 示例:
{{% codenew file="policy/zookeeper-pod-disruption-budget-minavailable.yaml" %}}
{{% code file="policy/zookeeper-pod-disruption-budget-minavailable.yaml" %}}
<!--
Example PDB Using maxUnavailable:
-->
使用 maxUnavailable 的 PDB 示例:
{{% codenew file="policy/zookeeper-pod-disruption-budget-maxunavailable.yaml" %}}
{{% code file="policy/zookeeper-pod-disruption-budget-maxunavailable.yaml" %}}
<!--
For example, if the above `zk-pdb` object selects the pods of a StatefulSet of size 3, both

View File

@ -98,7 +98,7 @@ Create the ConfigMap from the following YAML configuration file:
使用以下的 YAML 配置文件创建 ConfigMap
{{% codenew file="application/mysql/mysql-configmap.yaml" %}}
{{% code file="application/mysql/mysql-configmap.yaml" %}}
```shell
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:
使用以下 YAML 配置文件创建服务:
{{% codenew file="application/mysql/mysql-services.yaml" %}}
{{% code file="application/mysql/mysql-services.yaml" %}}
```shell
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:
最后,使用以下 YAML 配置文件创建 StatefulSet
{{< codenew file="application/mysql/mysql-statefulset.yaml" >}}
{{% code file="application/mysql/mysql-statefulset.yaml" %}}
```shell
kubectl apply -f https://k8s.io/examples/application/mysql/mysql-statefulset.yaml

View File

@ -58,8 +58,8 @@ for a secure solution.
注意:在配置的 YAML 文件中定义密码的做法是不安全的。具体安全解决方案请参考
[Kubernetes Secrets](/zh-cn/docs/concepts/configuration/secret/)。
{{% codenew file="application/mysql/mysql-deployment.yaml" %}}
{{% codenew file="application/mysql/mysql-pv.yaml" %}}
{{% code file="application/mysql/mysql-deployment.yaml" %}}
{{% code file="application/mysql/mysql-pv.yaml" %}}
<!--
1. Deploy the PV and PVC of the YAML file: