@@ -43,7 +43,7 @@ You can also follow this tutorial if you've installed minikube locally.
43
43
See [minikube start](https://minikube.sigs.k8s.io/docs/start/) for installation instructions.
44
44
-->
45
45
如果你已在本地安装 Minikube,也可以按照本教程操作。
46
- 安装指南参阅 [ minikube start] ( https://minikube.sigs.k8s.io/docs/start/ ) 。
46
+ 安装指南参阅 [ minikube start] ( https://minikube.sigs.k8s.io/docs/start/ ) 。
47
47
{{< /note >}}
48
48
49
49
## {{% heading "objectives" %}}
@@ -165,21 +165,26 @@ Kubernetes [**Deployment**](/zh-cn/docs/concepts/workloads/controllers/deploymen
165
165
检查 Pod 的健康状况,并在 Pod 中的容器终止的情况下重新启动新的容器。
166
166
Deployment 是管理 Pod 创建和扩展的推荐方法。
167
167
168
+ <!--
169
+ 1. Katacoda environment only: At the top of the terminal pane, click the plus sign, and then click open a new terminal.
170
+ -->
171
+ 1 . 仅 Katacoda 环境:在终端窗格的顶部,点击加号,然后点击 ** Open a new terminal** 。
172
+
168
173
<!--
169
174
1. Use the `kubectl create` command to create a Deployment that manages a Pod. The
170
175
Pod runs a Container based on the provided Docker image.
171
176
-->
172
- 1 . 使用 ` kubectl create ` 命令创建管理 Pod 的 Deployment。该 Pod 根据提供的 Docker
177
+ 2 . 使用 ` kubectl create ` 命令创建管理 Pod 的 Deployment。该 Pod 根据提供的 Docker
173
178
镜像运行容器。
174
179
175
180
``` shell
176
181
kubectl create deployment hello-node --image=registry.k8s.io/e2e-test-images/agnhost:2.39 -- /agnhost netexec --http-port=8080
177
182
```
178
183
179
184
<!--
180
- 2 . View the Deployment:
185
+ 1 . View the Deployment:
181
186
-->
182
- 2 . 查看 Deployment:
187
+ 3 . 查看 Deployment:
183
188
184
189
``` shell
185
190
kubectl get deployments
@@ -197,9 +202,9 @@ Pod runs a Container based on the provided Docker image.
197
202
```
198
203
199
204
<!--
200
- 3 . View the Pod:
205
+ 1 . View the Pod:
201
206
-->
202
- 3 . 查看 Pod:
207
+ 4 . 查看 Pod:
203
208
204
209
``` shell
205
210
kubectl get pods
@@ -217,18 +222,18 @@ Pod runs a Container based on the provided Docker image.
217
222
```
218
223
219
224
<!--
220
- 4 . View cluster events:
225
+ 1 . View cluster events:
221
226
-->
222
- 4 . 查看集群事件:
227
+ 5 . 查看集群事件:
223
228
224
229
``` shell
225
230
kubectl get events
226
231
```
227
232
228
233
<!--
229
- 5 . View the `kubectl` configuration:
234
+ 1 . View the `kubectl` configuration:
230
235
-->
231
- 5 . 查看 ` kubectl ` 配置:
236
+ 6 . 查看 ` kubectl ` 配置:
232
237
233
238
``` shell
234
239
kubectl config view
0 commit comments