@@ -62,7 +62,7 @@ See [minikube start](https://minikube.sigs.k8s.io/docs/start/) for installation
62
62
<!--
63
63
This tutorial provides a container image that uses NGINX to echo back all the requests.
64
64
-->
65
- 本教程提供了容器镜像,使用 NGINX 来对所有请求做出回应:
65
+ 本教程提供了容器镜像,使用 NGINX 来对所有请求做出回应。
66
66
67
67
<!-- lessoncontent -->
68
68
@@ -157,7 +157,6 @@ tutorial has only one Container. A Kubernetes
157
157
Pod and restarts the Pod's Container if it terminates. Deployments are the
158
158
recommended way to manage the creation and scaling of Pods.
159
159
-->
160
-
161
160
## 创建 Deployment {#create-a-deployment}
162
161
163
162
Kubernetes [ ** Pod** ] ( /zh-cn/docs/concepts/workloads/pods/ )
@@ -171,16 +170,15 @@ Deployment 是管理 Pod 创建和扩展的推荐方法。
171
170
Pod runs a Container based on the provided Docker image.
172
171
-->
173
172
1 . 使用 ` kubectl create ` 命令创建管理 Pod 的 Deployment。该 Pod 根据提供的 Docker
174
- 镜像运行 Container 。
173
+ 镜像运行容器 。
175
174
176
175
``` shell
177
- kubectl create deployment hello-node --image=registry.k8s.io/echoserver:1.4
176
+ kubectl create deployment hello-node --image=registry.k8s.io/e2e-test-images/agnhost:2.39 -- /agnhost netexec --http-port=8080
178
177
```
179
178
180
179
<!--
181
180
2. View the Deployment:
182
181
-->
183
-
184
182
2 . 查看 Deployment:
185
183
186
184
``` shell
@@ -268,11 +266,11 @@ Kubernetes [*Service*](/docs/concepts/services-networking/service/).
268
266
```
269
267
270
268
<!--
271
- The `--type=LoadBalancer` flag indicates that you want to expose your Service
272
- outside of the cluster.
269
+ The `--type=LoadBalancer` flag indicates that you want to expose your Service
270
+ outside of the cluster.
273
271
274
- The application code inside the image `registry.k8s.io/echoserver` only listens on TCP port 8080. If you used
275
- `kubectl expose` to expose a different port, clients could not connect to that other port.
272
+ The application code inside the image `registry.k8s.io/echoserver` only listens on TCP port 8080. If you used
273
+ `kubectl expose` to expose a different port, clients could not connect to that other port.
276
274
-->
277
275
278
276
这里的 ` --type=LoadBalancer ` 参数表明你希望将你的 Service 暴露到集群外部。
@@ -344,9 +342,9 @@ The minikube tool includes a set of built-in {{< glossary_tooltip text="addons"
344
342
345
343
1. List the currently supported addons:
346
344
-->
347
- ## 启用插件
345
+ ## 启用插件 {#enable-addons}
348
346
349
- Minikube 有一组内置的 {{< glossary_tooltip text="插件" term_id="addons" >}},
347
+ Minikube 有一组内置的{{< glossary_tooltip text="插件" term_id="addons" >}},
350
348
可以在本地 Kubernetes 环境中启用、禁用和打开。
351
349
352
350
1 . 列出当前支持的插件:
0 commit comments