@@ -366,6 +366,14 @@ Follow the steps given below to update your Deployment:
366
366
``` shell
367
367
kubectl set image deployment/nginx-deployment nginx=nginx:1.16.1
368
368
```
369
+
370
+ <!--
371
+ where `deployment/nginx-deployment` indicates the Deployment,
372
+ `nginx` indicates the Container the update will take place and
373
+ `nginx:1.16.1` indicates the new image and its tag.
374
+ -->
375
+ 在这里,` deployment/nginx-deployment ` 表明 Deployment 的名称,` nginx ` 表明需要进行更新的容器,
376
+ 而 ` nginx:1.16.1 ` 则表示镜像的新版本以及它的标签。
369
377
370
378
<!--
371
379
The output is similar to:
@@ -2228,19 +2236,17 @@ Deployment 在创建时是默认不会处于暂停状态。
2228
2236
## {{% heading "whatsnext" %}}
2229
2237
2230
2238
<!--
2231
- * Learn about [Pods](/docs/concepts/workloads/pods).
2232
- * [Run a Stateless Application Using a Deployment](/docs/tasks/run-application/run-stateless-application-deployment/).
2233
- * `Deployment` is a top-level resource in the Kubernetes REST API.
2234
- Read the {{< api-reference page="workload-resources/deployment-v1" >}}
2235
- object definition to understand the API for deployments.
2239
+ * Learn more about [Pods](/docs/concepts/workloads/pods).
2240
+ * [Run a stateless application using a Deployment](/docs/tasks/run-application/run-stateless-application-deployment/).
2241
+ * Read the {{< api-reference page="workload-resources/deployment-v1" >}} to understand the Deployment API.
2236
2242
* Read about [PodDisruptionBudget](/docs/concepts/workloads/pods/disruptions/) and how
2237
2243
you can use it to manage application availability during disruptions.
2244
+ * Use kubectl to [create a Deployment](/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro/).
2238
2245
-->
2239
- * 了解 [ Pod] ( /zh-cn/docs/concepts/workloads/pods ) 。
2246
+ * 进一步了解 [ Pod] ( /zh-cn/docs/concepts/workloads/pods ) 。
2240
2247
* [ 使用 Deployment 运行一个无状态应用] ( /zh-cn/docs/tasks/run-application/run-stateless-application-deployment/ ) 。
2241
- * ` Deployment ` 是 Kubernetes REST API 中的一个顶层资源。
2242
- 阅读 {{< api-reference page="workload-resources/deployment-v1" >}}
2243
- 对象定义,以了解 Deployment 的 API 细节。
2248
+ * 阅读 {{< api-reference page="workload-resources/deployment-v1" >}},
2249
+ 以了解 Deployment API 的细节。
2244
2250
* 阅读 [ PodDisruptionBudget] ( /zh-cn/docs/concepts/workloads/pods/disruptions/ )
2245
2251
了解如何使用它来在可能出现干扰的情况下管理应用的可用性。
2246
-
2252
+ * 使用 kubectl 来 [ 创建一个 Deployment ] ( /zh-cn/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro/ ) 。
0 commit comments