File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
content/zh-cn/docs/concepts/workloads/controllers Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -137,18 +137,18 @@ In this example:
137
137
{{< /note >}}
138
138
139
139
<!--
140
- * The `template` field contains the following sub-fields:
140
+ * The `.spec. template` field contains the following sub-fields:
141
141
* 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
143
143
the Pods run one container, `nginx`, which runs the `nginx`
144
144
[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.
146
146
-->
147
- * ` template ` 字段包含以下子字段:
147
+ * ` .spec. template` 字段包含以下子字段:
148
148
* Pod 被使用 ` .metadata.labels ` 字段打上 ` app: nginx ` 标签。
149
- * Pod 模板规约(即 ` .template. spec ` 字段)指示 Pod 运行一个 ` nginx ` 容器,
149
+ * Pod 模板规约(即 ` .spec ` 字段)指示 Pod 运行一个 ` nginx ` 容器,
150
150
该容器运行版本为 1.14.2 的 ` nginx ` [ Docker Hub] ( https://hub.docker.com/ ) 镜像。
151
- * 创建一个容器并使用 ` .spec.template.spec. containers[0].name ` 字段将其命名为 ` nginx ` 。
151
+ * 创建一个容器并使用 ` .spec.containers[0].name ` 字段将其命名为 ` nginx ` 。
152
152
153
153
<!--
154
154
Before you begin, make sure your Kubernetes cluster is up and running.
You can’t perform that action at this time.
0 commit comments