Merge pull request #27230 from ydFu/update-hello-minikube

[zh] Sync tutorials pages for hello-minikube.md
This commit is contained in:
Kubernetes Prow Robot 2021-03-25 22:48:43 -07:00 committed by GitHub
commit ec7f74d65e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 39 additions and 4 deletions

View File

@ -81,9 +81,13 @@ This tutorial provides a container image that uses NGINX to echo back all the re
{{< kat-button >}} {{< kat-button >}}
<!-- If you installed Minikube locally, run `minikube start`.--> <!--
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.
-->
{{< note >}} {{< note >}}
如果你在本地安装了 Minikube运行 `minikube start` 如果你在本地安装了 Minikube运行 `minikube start`
在运行 `minikube dashboard` 之前,你应该打开一个新终端,
在此启动 `minikube dashboard` ,然后切换回主终端。
{{< /note >}} {{< /note >}}
<!-- <!--
@ -97,13 +101,44 @@ This tutorial provides a container image that uses NGINX to echo back all the re
<!-- <!--
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**. 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**.
4. Katacoda environment only: Type `30000`, and then click **Display Port**.
--> -->
3. 仅限 Katacoda 环境:在终端窗口的顶部,单击加号,然后单击 **选择要在主机 1 上查看的端口** 3. 仅限 Katacoda 环境:在终端窗口的顶部,单击加号,然后单击 **选择要在主机 1 上查看的端口**
<!--
4. Katacoda environment only: Type `30000`, and then click **Display Port**.
-->
4. 仅限 Katacoda 环境输入“30000”然后单击 **显示端口** 4. 仅限 Katacoda 环境输入“30000”然后单击 **显示端口**
<!--
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.
If you are running in an environment as root, see [Open Dashboard with URL](/docs/tutorials/hello-minikube#open-dashboard-with-url).
To stop the proxy, run `Ctrl+C` to exit the process. The dashboard remains running.
-->
{{< note >}}
`dashboard` 命令启用仪表板插件,并在默认的 Web 浏览器中打开代理。你可以在仪表板上创建 Kubernetes 资源,例如 Deployment 和 Service。
如果你以 root 用户身份在环境中运行,
请参见[使用 URL 打开仪表板](/zh/docs/tutorials/hello-minikube#open-dashboard-with-url)。
要停止代理,请运行 `Ctrl+C` 退出该进程。仪表板仍在运行中。
{{< /note >}}
<!--
## Open Dashboard with URL
-->
## 使用 URL 打开仪表板
<!--
If you don't want to open a web browser, run the dashboard command with the url flag to emit a URL:
-->
如果你不想打开 Web 浏览器,请使用 url 标志运行显示板命令以得到 URL
```shell
minikube dashboard --url
```
<!-- <!--
## Create a Deployment ## Create a Deployment