@@ -31,10 +31,10 @@ card:
31
31
32
32
<!--
33
33
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.
35
35
Katacoda provides a free, in-browser Kubernetes environment.
36
36
-->
37
- 本教程向你展示如何使用 [ Minikube] ( /zh/docs/setup/learning-environment/minikube ) 和 Katacoda
37
+ 本教程向你展示如何使用 Minikube 和 Katacoda
38
38
在 Kubernetes 上运行一个应用示例。Katacoda 提供免费的浏览器内 Kubernetes 环境。
39
39
40
40
<!--
@@ -52,7 +52,7 @@ See [minikube start](https://minikube.sigs.k8s.io/docs/start/) for installation
52
52
## {{% heading "objectives" %}}
53
53
54
54
<!--
55
- * Deploy a sample application to Minikube .
55
+ * Deploy a sample application to minikube .
56
56
* Run the app.
57
57
* View application logs.
58
58
-->
@@ -71,7 +71,7 @@ This tutorial provides a container image that uses NGINX to echo back all the re
71
71
<!-- lessoncontent -->
72
72
73
73
<!--
74
- ## Create a Minikube cluster
74
+ ## Create a minikube cluster
75
75
76
76
1. Click **Launch Terminal**
77
77
-->
@@ -108,7 +108,7 @@ This tutorial provides a container image that uses NGINX to echo back all the re
108
108
109
109
## Create a Deployment
110
110
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,
112
112
tied together for the purposes of administration and networking. The Pod in this
113
113
tutorial has only one Container. A Kubernetes
114
114
[*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.
118
118
119
119
## 创建 Deployment
120
120
121
- Kubernetes [ * Pod* ] ( /zh/docs/concepts/workloads/pods/pod/ ) 是由一个或多个
121
+ Kubernetes [ * Pod* ] ( /zh/docs/concepts/workloads/pods/ ) 是由一个或多个
122
122
为了管理和联网而绑定在一起的容器构成的组。 本教程中的 Pod 只有一个容器。
123
123
Kubernetes [ * Deployment* ] ( /zh/docs/concepts/workloads/controllers/deployment/ )
124
124
检查 Pod 的健康状况,并在 Pod 中的容器终止的情况下重新启动新的容器。
@@ -199,7 +199,7 @@ For more information about `kubectl`commands, see the
199
199
[kubectl overview](/docs/user-guide/kubectl-overview/).
200
200
-->
201
201
{{< note >}}
202
- 有关 kubectl 命令的更多信息,请参阅 [ kubectl 概述] ( /zh/docs/user-guide /kubectl- overview/ ) 。
202
+ 有关 ` kubectl ` 命令的更多信息,请参阅 [ kubectl 概述] ( /zh/docs/reference /kubectl/ overview/ ) 。
203
203
{{< /note >}}
204
204
205
205
<!--
@@ -226,10 +226,16 @@ Kubernetes [*Service*](/docs/concepts/services-networking/service/).
226
226
```
227
227
228
228
<!--
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.
231
234
-->
232
- 这里的 ` --type=LoadBalancer ` 标志表明你希望将你的 Service 暴露到集群外部。
235
+ 这里的 ` --type=LoadBalancer ` 参数表明你希望将你的 Service 暴露到集群外部。
236
+
237
+ 镜像 ` k8s.gcr.io/echoserver ` 中的应用程序代码仅监听 TCP 8080 端口。
238
+ 如果你用 ` kubectl expose ` 暴露了其它的端口,客户端将不能访问其它端口。
233
239
234
240
<!--
235
241
2. View the Service you just created:
@@ -254,7 +260,7 @@ Kubernetes [*Service*](/docs/concepts/services-networking/service/).
254
260
255
261
<!--
256
262
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 ,
258
264
the `LoadBalancer` type makes the Service accessible through the `minikube service`
259
265
command.
260
266
-->
@@ -290,7 +296,7 @@ Kubernetes [*Service*](/docs/concepts/services-networking/service/).
290
296
<!--
291
297
## Enable addons
292
298
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.
294
300
295
301
1. List the currently supported addons:
296
302
-->
0 commit comments