sync horizontal-pod-autoscale-walkthrough run-stateless-application-deployment install-kubectl-linux

pull/42468/head
xin gu 2023-08-09 16:43:18 +08:00
parent 3570f4c38d
commit 2fbf0490e2
3 changed files with 7 additions and 8 deletions

View File

@ -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:
@ -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:

View File

@ -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:
@ -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:
@ -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:

View File

@ -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 %}}