From f0568d42edaef57bc9b2291a58969112f13a692a Mon Sep 17 00:00:00 2001 From: "xin.li" Date: Mon, 29 Jan 2024 13:45:41 +0800 Subject: [PATCH] [zh-cn] sync names components hello-minikube Signed-off-by: xin.li --- .../docs/concepts/overview/components.md | 28 ++++++--- .../overview/working-with-objects/names.md | 13 +++- .../zh-cn/docs/tutorials/hello-minikube.md | 61 ++++++++++++++++--- 3 files changed, 84 insertions(+), 18 deletions(-) diff --git a/content/zh-cn/docs/concepts/overview/components.md b/content/zh-cn/docs/concepts/overview/components.md index 059947e521..9e65ad1bc5 100644 --- a/content/zh-cn/docs/concepts/overview/components.md +++ b/content/zh-cn/docs/concepts/overview/components.md @@ -25,6 +25,7 @@ card: --> + ## 控制平面组件(Control Plane Components) {#control-plane-components} 控制平面组件会为集群做出全局决策,比如资源的调度。 -以及检测和响应集群事件,例如当不满足部署的 `replicas` 字段时, -要启动新的 {{< glossary_tooltip text="pod" term_id="pod">}})。 +以及检测和响应集群事件,例如当不满足部署的 `{{< glossary_tooltip text="replicas" term_id="replica" >}}` +字段时,要启动新的 {{< glossary_tooltip text="Pod" term_id="pod">}})。 @@ -206,7 +212,9 @@ Kubernetes 启动的容器自动将此 DNS 服务器包含在其 DNS 搜索列 ### Web 界面(仪表盘) {#web-ui-dashboard} @@ -218,7 +226,8 @@ Kubernetes 启动的容器自动将此 DNS 服务器包含在其 DNS 搜索列 ### 容器资源监控 {#container-resource-monitoring} @@ -254,7 +263,8 @@ allocating IP addresses to pods and enabling them to communicate with each other +RFC 1035 和 RFC 1123 标签标准之间的唯一区别是 RFC 1123 +标签允许以数字开头,而 RFC 1035 标签只能以小写字母字符开头。 +{{< /note >}} + * 进一步了解 Kubernetes [标签](/zh-cn/docs/concepts/overview/working-with-objects/labels/)和[注解](/zh-cn/docs/concepts/overview/working-with-objects/annotations/)。 -* 参阅 [Kubernetes 标识符和名称](https://git.k8s.io/design-proposals-archive/architecture/identifiers.md)的设计文档 +* 参阅 [Kubernetes 标识符和名称](https://git.k8s.io/design-proposals-archive/architecture/identifiers.md)的设计文档。 diff --git a/content/zh-cn/docs/tutorials/hello-minikube.md b/content/zh-cn/docs/tutorials/hello-minikube.md index 82788e32e5..0f0daf8562 100644 --- a/content/zh-cn/docs/tutorials/hello-minikube.md +++ b/content/zh-cn/docs/tutorials/hello-minikube.md @@ -51,14 +51,22 @@ The tutorial provides a container image that uses NGINX to echo back all the req +本教程假设你已经安装了 `minikube`。 +有关安装说明,请参阅 [minikube start](https://minikube.sigs.k8s.io/docs/start/) 的**步骤 1**。 +{{< note >}} + +仅执行**步骤 1:安装**中的说明,其余内容均包含在本页中。 +{{< /note >}} + + -本教程假设你已经安装了 `minikube`。 -有关安装说明,请参阅 [minikube start](https://minikube.sigs.k8s.io/docs/start/)。 - 你还需要安装 `kubectl`。 有关安装说明,请参阅[安装工具](/zh-cn/docs/tasks/tools/#kubectl)。 @@ -394,7 +402,7 @@ Minikube 有一组内置的{{< glossary_tooltip text="插件" term_id="addons" > ``` 2. 启用插件,例如 `metrics-server`: @@ -413,7 +421,7 @@ Minikube 有一组内置的{{< glossary_tooltip text="插件" term_id="addons" > ``` 3. 查看通过安装该插件所创建的 Pod 和 Service: @@ -449,9 +457,37 @@ Minikube 有一组内置的{{< glossary_tooltip text="插件" term_id="addons" > ``` -4. 禁用 `metrics-server`: +4. 检查 `metrics-server` 的输出: + + ```shell + kubectl top pods + ``` + + + 输出类似于: + + ``` + NAME CPU(cores) MEMORY(bytes) + hello-node-ccf4b9788-4jn97 1m 6Mi + ``` + + + 如果你看到以下消息,请等待并重试: + + ``` + error: Metrics API not available + ``` + + +5. 禁用 `metrics-server`: ```shell minikube addons disable metrics-server @@ -505,6 +541,15 @@ If you want to use minikube again to learn more about Kubernetes, you don't need --> 如果你还想使用 Minikube 进一步学习 Kubernetes,那就不需要删除 Minikube。 + +## 结论 + +本页介绍了启动和运行 minikube 集群的基本知识,现在部署应用的准备工作已经完成。 + ## {{% heading "whatsnext" %}}