Skip to content

Commit ff5a1a2

Browse files
authored
Merge pull request #49572 from dkarczmarski/fix-typo-deployment-zh-cn.md
[zh-cn] fix: typo in deployment.md
2 parents 2e15797 + c096b90 commit ff5a1a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/zh-cn/docs/concepts/workloads/controllers/deployment.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,18 @@ In this example:
137137
{{< /note >}}
138138

139139
<!--
140-
* The `template` field contains the following sub-fields:
140+
* The `.spec.template` field contains the following sub-fields:
141141
* The Pods are labeled `app: nginx`using the `.metadata.labels` field.
142-
* The Pod template's specification, or `.template.spec` field, indicates that
142+
* The Pod template's specification, or `.spec` field, indicates that
143143
the Pods run one container, `nginx`, which runs the `nginx`
144144
[Docker Hub](https://hub.docker.com/) image at version 1.14.2.
145-
* Create one container and name it `nginx` using the `.spec.template.spec.containers[0].name` field.
145+
* Create one container and name it `nginx` using the `.spec.containers[0].name` field.
146146
-->
147-
* `template` 字段包含以下子字段:
147+
* `.spec.template` 字段包含以下子字段:
148148
* Pod 被使用 `.metadata.labels` 字段打上 `app: nginx` 标签。
149-
* Pod 模板规约(即 `.template.spec` 字段)指示 Pod 运行一个 `nginx` 容器,
149+
* Pod 模板规约(即 `.spec` 字段)指示 Pod 运行一个 `nginx` 容器,
150150
该容器运行版本为 1.14.2 的 `nginx` [Docker Hub](https://hub.docker.com/) 镜像。
151-
* 创建一个容器并使用 `.spec.template.spec.containers[0].name` 字段将其命名为 `nginx`
151+
* 创建一个容器并使用 `.spec.containers[0].name` 字段将其命名为 `nginx`
152152

153153
<!--
154154
Before you begin, make sure your Kubernetes cluster is up and running.

0 commit comments

Comments
 (0)