Skip to content

Commit f0de1c3

Browse files
committed
[zh] Sync tutorials pages for hello-minikube.md
* Sync with english version in 'Update hello minikube page (#27212)' Signed-off-by: ydFu <[email protected]>
1 parent c9f42c1 commit f0de1c3

File tree

1 file changed

+39
-4
lines changed

1 file changed

+39
-4
lines changed

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

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,13 @@ This tutorial provides a container image that uses NGINX to echo back all the re
8181

8282
{{< kat-button >}}
8383

84-
<!-- If you installed Minikube locally, run `minikube start`.-->
84+
<!--
85+
If you installed minikube locally, run `minikube start`. Before you run `minikube dashboard`, you should open a new terminal, start `minikube dashboard` there, and then switch back to the main terminal.
86+
-->
8587
{{< note >}}
86-
如果你在本地安装了 Minikube,运行 `minikube start`
88+
如果你在本地安装了 Minikube,运行 `minikube start`
89+
在运行 `minikube dashboard` 之前,你应该打开一个新终端,
90+
在此启动 `minikube dashboard` ,然后切换回主终端。
8791
{{< /note >}}
8892

8993
<!--
@@ -97,13 +101,44 @@ This tutorial provides a container image that uses NGINX to echo back all the re
97101

98102
<!--
99103
3. Katacoda environment only: At the top of the terminal pane, click the plus sign, and then click **Select port to view on Host 1**.
100-
101-
4. Katacoda environment only: Type `30000`, and then click **Display Port**.
102104
-->
103105
3. 仅限 Katacoda 环境:在终端窗口的顶部,单击加号,然后单击 **选择要在主机 1 上查看的端口**
104106

107+
<!--
108+
4. Katacoda environment only: Type `30000`, and then click **Display Port**.
109+
-->
105110
4. 仅限 Katacoda 环境:输入“30000”,然后单击 **显示端口**
106111

112+
<!--
113+
The `dashboard` command enables the dashboard add-on and opens the proxy in the default web browser. You can create Kubernetes resources on the dashboard such as Deployment and Service.
114+
115+
If you are running in an environment as root, see [Open Dashboard with URL](/docs/tutorials/hello-minikube#open-dashboard-with-url).
116+
117+
To stop the proxy, run `Ctrl+C` to exit the process. The dashboard remains running.
118+
-->
119+
{{< note >}}
120+
`dashboard` 命令启用仪表板插件,并在默认的 Web 浏览器中打开代理。你可以在仪表板上创建 Kubernetes 资源,例如 Deployment 和 Service。
121+
122+
如果你以 root 用户身份在环境中运行,
123+
请参见[使用 URL 打开仪表板](/zh/docs/tutorials/hello-minikube#open-dashboard-with-url)
124+
125+
要停止代理,请运行 `Ctrl+C` 退出该进程。仪表板仍在运行中。
126+
{{< /note >}}
127+
128+
<!--
129+
## Open Dashboard with URL
130+
-->
131+
## 使用 URL 打开仪表板
132+
133+
<!--
134+
If you don't want to open a web browser, run the dashboard command with the url flag to emit a URL:
135+
-->
136+
如果你不想打开 Web 浏览器,请使用 url 标志运行显示板命令以得到 URL:
137+
138+
```shell
139+
minikube dashboard --url
140+
```
141+
107142
<!--
108143
109144
## Create a Deployment

0 commit comments

Comments
 (0)