Skip to content

Commit 3df0331

Browse files
authored
Merge pull request #26058 from yuandongx/patch-24
[zh] Minikube urls miss. Some lines are outdate.
2 parents 2135ed8 + 9a33c75 commit 3df0331

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

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

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ card:
3131

3232
<!--
3333
This tutorial shows you how to run a sample app
34-
on Kubernetes using [Minikube](/docs/setup/learning-environment/minikube) and Katacoda.
34+
on Kubernetes using minikube and Katacoda.
3535
Katacoda provides a free, in-browser Kubernetes environment.
3636
-->
37-
本教程向你展示如何使用 [Minikube](/zh/docs/setup/learning-environment/minikube) 和 Katacoda
37+
本教程向你展示如何使用 Minikube 和 Katacoda
3838
在 Kubernetes 上运行一个应用示例。Katacoda 提供免费的浏览器内 Kubernetes 环境。
3939

4040
<!--
@@ -52,7 +52,7 @@ See [minikube start](https://minikube.sigs.k8s.io/docs/start/) for installation
5252
## {{% heading "objectives" %}}
5353

5454
<!--
55-
* Deploy a sample application to Minikube.
55+
* Deploy a sample application to minikube.
5656
* Run the app.
5757
* View application logs.
5858
-->
@@ -71,7 +71,7 @@ This tutorial provides a container image that uses NGINX to echo back all the re
7171
<!-- lessoncontent -->
7272

7373
<!--
74-
## Create a Minikube cluster
74+
## Create a minikube cluster
7575
7676
1. Click **Launch Terminal**
7777
-->
@@ -108,7 +108,7 @@ This tutorial provides a container image that uses NGINX to echo back all the re
108108
109109
## Create a Deployment
110110
111-
A Kubernetes [*Pod*](/docs/concepts/workloads/pods/pod/) is a group of one or more Containers,
111+
A Kubernetes [*Pod*](/docs/concepts/workloads/pods/) is a group of one or more Containers,
112112
tied together for the purposes of administration and networking. The Pod in this
113113
tutorial has only one Container. A Kubernetes
114114
[*Deployment*](/docs/concepts/workloads/controllers/deployment/) checks on the health of your
@@ -118,7 +118,7 @@ recommended way to manage the creation and scaling of Pods.
118118

119119
## 创建 Deployment
120120

121-
Kubernetes [*Pod*](/zh/docs/concepts/workloads/pods/pod/) 是由一个或多个
121+
Kubernetes [*Pod*](/zh/docs/concepts/workloads/pods/) 是由一个或多个
122122
为了管理和联网而绑定在一起的容器构成的组。 本教程中的 Pod 只有一个容器。
123123
Kubernetes [*Deployment*](/zh/docs/concepts/workloads/controllers/deployment/)
124124
检查 Pod 的健康状况,并在 Pod 中的容器终止的情况下重新启动新的容器。
@@ -199,7 +199,7 @@ For more information about `kubectl`commands, see the
199199
[kubectl overview](/docs/user-guide/kubectl-overview/).
200200
-->
201201
{{< note >}}
202-
有关 kubectl 命令的更多信息,请参阅 [kubectl 概述](/zh/docs/user-guide/kubectl-overview/)
202+
有关 `kubectl` 命令的更多信息,请参阅 [kubectl 概述](/zh/docs/reference/kubectl/overview/)
203203
{{< /note >}}
204204

205205
<!--
@@ -226,10 +226,16 @@ Kubernetes [*Service*](/docs/concepts/services-networking/service/).
226226
```
227227

228228
<!--
229-
The `-type=LoadBalancer` flag indicates that you want to expose your Service
230-
outside of the cluster.
229+
The `--type=LoadBalancer` flag indicates that you want to expose your Service
230+
outside of the cluster.
231+
232+
The application code inside the image `k8s.gcr.io/echoserver` only listens on TCP port 8080. If you used
233+
`kubectl expose` to expose a different port, clients could not connect to that other port.
231234
-->
232-
这里的 `--type=LoadBalancer` 标志表明你希望将你的 Service 暴露到集群外部。
235+
这里的 `--type=LoadBalancer` 参数表明你希望将你的 Service 暴露到集群外部。
236+
237+
镜像 `k8s.gcr.io/echoserver` 中的应用程序代码仅监听 TCP 8080 端口。
238+
如果你用 `kubectl expose` 暴露了其它的端口,客户端将不能访问其它端口。
233239

234240
<!--
235241
2. View the Service you just created:
@@ -254,7 +260,7 @@ Kubernetes [*Service*](/docs/concepts/services-networking/service/).
254260

255261
<!--
256262
On cloud providers that support load balancers,
257-
an external IP address would be provisioned to access the Service. On Minikube,
263+
an external IP address would be provisioned to access the Service. On minikube,
258264
the `LoadBalancer` type makes the Service accessible through the `minikube service`
259265
command.
260266
-->
@@ -290,7 +296,7 @@ Kubernetes [*Service*](/docs/concepts/services-networking/service/).
290296
<!--
291297
## Enable addons
292298
293-
Minikube has a set of built-in {{< glossary_tooltip text="addons" term_id="addons" >}} that can be enabled, disabled and opened in the local Kubernetes environment.
299+
The minikube tool includes a set of built-in {{< glossary_tooltip text="addons" term_id="addons" >}} that can be enabled, disabled and opened in the local Kubernetes environment.
294300
295301
1. List the currently supported addons:
296302
-->

0 commit comments

Comments
 (0)