File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
content/zh-cn/docs/concepts/workloads/controllers Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,17 @@ The following are typical use cases for Deployments:
84
84
<!--
85
85
## Creating a Deployment
86
86
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
+
87
91
The following is an example of a Deployment. It creates a ReplicaSet to bring up three `nginx` Pods:
88
92
-->
89
93
## 创建 Deployment {#creating-a-deployment}
90
94
95
+ 在创建 Deployment 之前,请为容器定义一个
96
+ [ 环境变量] ( /zh-cn/docs/tasks/inject-data-application/define-environment-variable-container/#define-an-environment-variable-for-a-container ) 。
97
+
91
98
下面是一个 Deployment 示例。其中创建了一个 ReplicaSet,负责启动三个 ` nginx ` Pod:
92
99
93
100
{{< codenew file="controllers/nginx-deployment.yaml" >}}
You can’t perform that action at this time.
0 commit comments