Skip to content

Commit 9e1fdc5

Browse files
authored
Merge pull request #42468 from asa3311/sync-zh-43
[zh] sync horizontal-pod-autoscale-walkthrough run-stateless-application-deployment install-kubectl-linux
2 parents 266c194 + 2fbf049 commit 9e1fdc5

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

content/zh-cn/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ using the following manifest:
104104
为了演示 HorizontalPodAutoscaler,你将首先启动一个 Deployment 用 `hpa-example` 镜像运行一个容器,
105105
然后使用以下清单文件将其暴露为一个 {{< glossary_tooltip term_id="service">}}:
106106

107-
{{% codenew file="application/php-apache.yaml" %}}
107+
{{% code file="application/php-apache.yaml" %}}
108108

109109
<!--
110110
To do so, run the following command:
@@ -775,7 +775,7 @@ can use the following manifest to create it declaratively:
775775
-->
776776
除了使用 `kubectl autoscale` 命令,也可以使用以下清单以声明方式创建 HorizontalPodAutoscaler:
777777
778-
{{% codenew file="application/hpa/php-apache.yaml" %}}
778+
{{% code file="application/hpa/php-apache.yaml" %}}
779779
780780
<!--
781781
Then, create the autoscaler by executing the following command:

content/zh-cn/docs/tasks/run-application/run-stateless-application-deployment.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ a Deployment that runs the nginx:1.14.2 Docker image:
4242
YAML 文件中描述 Deployment。例如,下面这个 YAML 文件描述了一个运行 nginx:1.14.2
4343
Docker 镜像的 Deployment:
4444

45-
{{% codenew file="application/deployment.yaml" %}}
45+
{{% code file="application/deployment.yaml" %}}
4646

4747
<!--
4848
1. Create a Deployment based on the YAML file:
@@ -142,7 +142,7 @@ specifies that the deployment should be updated to use nginx 1.16.1.
142142
你可以通过应用一个新的 YAML 文件来更新 Deployment。下面的 YAML 文件指定该
143143
Deployment 镜像更新为 nginx 1.16.1。
144144

145-
{{% codenew file="application/deployment-update.yaml" %}}
145+
{{% code file="application/deployment-update.yaml" %}}
146146

147147
<!--
148148
1. Apply the new YAML file:
@@ -174,7 +174,7 @@ should have four Pods:
174174
你可以通过应用新的 YAML 文件来增加 Deployment 中 Pod 的数量。
175175
下面的 YAML 文件将 `replicas` 设置为 4,指定该 Deployment 应有 4 个 Pod:
176176

177-
{{% codenew file="application/deployment-scale.yaml" %}}
177+
{{% code file="application/deployment-scale.yaml" %}}
178178

179179
<!--
180180
1. Apply the new YAML file:

content/zh-cn/docs/tasks/tools/install-kubectl-linux.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,10 @@ Or use this for detailed view of version:
270270

271271
{{< note >}}
272272
<!--
273-
In releases older than Debian 12 and Ubuntu 22.04, `/etc/apt/keyrings` does not exist by default.
274-
You can create this directory if you need to, making it world-readable but writeable only by admins.
273+
In releases older than Debian 12 and Ubuntu 22.04, `/etc/apt/keyrings` does not exist by default, and can be created using `sudo mkdir -m 755 /etc/apt/keyrings`
275274
-->
276275
在低于 Debian 12 和 Ubuntu 22.04 的发行版本中,`/etc/apt/keyrings` 默认不存在。
277-
如有需要,你可以创建此目录,并将其设置为对所有人可读,但仅对管理员可写
276+
可以使用 `sudo mkdir -m 755 /etc/apt/keyrings` 来创建
278277
{{< /note >}}
279278

280279
{{% /tab %}}

0 commit comments

Comments
 (0)