Skip to content

Commit

Permalink
sync horizontal-pod-autoscale-walkthrough run-stateless-application-d…
Browse files Browse the repository at this point in the history
…eployment install-kubectl-linux
  • Loading branch information
asa3311 committed Aug 9, 2023
1 parent 3570f4c commit 2fbf049
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ using the following manifest:
为了演示 HorizontalPodAutoscaler,你将首先启动一个 Deployment 用 `hpa-example` 镜像运行一个容器,
然后使用以下清单文件将其暴露为一个 {{< glossary_tooltip term_id="service">}}:

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

<!--
To do so, run the following command:
Expand Down Expand Up @@ -775,7 +775,7 @@ can use the following manifest to create it declaratively:
-->
除了使用 `kubectl autoscale` 命令,也可以使用以下清单以声明方式创建 HorizontalPodAutoscaler:

{{% codenew file="application/hpa/php-apache.yaml" %}}
{{% code file="application/hpa/php-apache.yaml" %}}

<!--
Then, create the autoscaler by executing the following command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ a Deployment that runs the nginx:1.14.2 Docker image:
YAML 文件中描述 Deployment。例如,下面这个 YAML 文件描述了一个运行 nginx:1.14.2
Docker 镜像的 Deployment:

{{% codenew file="application/deployment.yaml" %}}
{{% code file="application/deployment.yaml" %}}

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

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

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

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

<!--
1. Apply the new YAML file:
Expand Down
5 changes: 2 additions & 3 deletions content/zh-cn/docs/tasks/tools/install-kubectl-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,10 @@ Or use this for detailed view of version:

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

{{% /tab %}}
Expand Down

0 comments on commit 2fbf049

Please sign in to comment.