Skip to content

Commit eb254e9

Browse files
authored
Merge pull request #40979 from asa3311/sync-deployment.md
[zh-cn] sync deployment.md
2 parents 2c3fd6f + 680645a commit eb254e9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,17 @@ The following are typical use cases for Deployments:
8484
<!--
8585
## Creating a Deployment
8686
87+
Before creating a Deployment define an
88+
[environment variable](/docs/tasks/inject-data-application/define-environment-variable-container/#define-an-environment-variable-for-a-container)
89+
for a container.
90+
8791
The following is an example of a Deployment. It creates a ReplicaSet to bring up three `nginx` Pods:
8892
-->
8993
## 创建 Deployment {#creating-a-deployment}
9094

95+
在创建 Deployment 之前,请为容器定义一个
96+
[环境变量](/zh-cn/docs/tasks/inject-data-application/define-environment-variable-container/#define-an-environment-variable-for-a-container)
97+
9198
下面是一个 Deployment 示例。其中创建了一个 ReplicaSet,负责启动三个 `nginx` Pod:
9299

93100
{{< codenew file="controllers/nginx-deployment.yaml" >}}

0 commit comments

Comments
 (0)