Skip to content

Commit 6109e02

Browse files
committed
[zh] sync hello-minikube.md
1 parent 8546b02 commit 6109e02

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

content/zh-cn/docs/tutorials/hello-minikube.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ See [minikube start](https://minikube.sigs.k8s.io/docs/start/) for installation
6262
<!--
6363
This tutorial provides a container image that uses NGINX to echo back all the requests.
6464
-->
65-
本教程提供了容器镜像,使用 NGINX 来对所有请求做出回应
65+
本教程提供了容器镜像,使用 NGINX 来对所有请求做出回应
6666

6767
<!-- lessoncontent -->
6868

@@ -157,7 +157,6 @@ tutorial has only one Container. A Kubernetes
157157
Pod and restarts the Pod's Container if it terminates. Deployments are the
158158
recommended way to manage the creation and scaling of Pods.
159159
-->
160-
161160
## 创建 Deployment {#create-a-deployment}
162161

163162
Kubernetes [**Pod**](/zh-cn/docs/concepts/workloads/pods/)
@@ -171,16 +170,15 @@ Deployment 是管理 Pod 创建和扩展的推荐方法。
171170
Pod runs a Container based on the provided Docker image.
172171
-->
173172
1. 使用 `kubectl create` 命令创建管理 Pod 的 Deployment。该 Pod 根据提供的 Docker
174-
镜像运行 Container
173+
镜像运行容器
175174

176175
```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
178177
```
179178

180179
<!--
181180
2. View the Deployment:
182181
-->
183-
184182
2. 查看 Deployment:
185183

186184
```shell
@@ -268,11 +266,11 @@ Kubernetes [*Service*](/docs/concepts/services-networking/service/).
268266
```
269267

270268
<!--
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.
273271
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.
276274
-->
277275

278276
这里的 `--type=LoadBalancer` 参数表明你希望将你的 Service 暴露到集群外部。
@@ -344,9 +342,9 @@ The minikube tool includes a set of built-in {{< glossary_tooltip text="addons"
344342
345343
1. List the currently supported addons:
346344
-->
347-
## 启用插件
345+
## 启用插件 {#enable-addons}
348346

349-
Minikube 有一组内置的 {{< glossary_tooltip text="插件" term_id="addons" >}},
347+
Minikube 有一组内置的{{< glossary_tooltip text="插件" term_id="addons" >}},
350348
可以在本地 Kubernetes 环境中启用、禁用和打开。
351349

352350
1. 列出当前支持的插件:

0 commit comments

Comments
 (0)