Skip to content

Commit f0568d4

Browse files
committed
[zh-cn] sync names components hello-minikube
Signed-off-by: xin.li <[email protected]>
1 parent 47068cb commit f0568d4

File tree

3 files changed

+84
-18
lines changed

3 files changed

+84
-18
lines changed

content/zh-cn/docs/concepts/overview/components.md

+19-9
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ card:
2525
-->
2626

2727
<!-- overview -->
28+
2829
<!--
2930
When you deploy Kubernetes, you get a cluster.
3031
{{ < glossary_definition term_id="cluster" length="all" prepend="A Kubernetes cluster consists of">}}
@@ -47,13 +48,16 @@ a complete and working Kubernetes cluster.
4748
<!--
4849
## Control Plane Components
4950
50-
The control plane's components make global decisions about the cluster (for example, scheduling), as well as detecting and responding to cluster events (for example, starting up a new {{< glossary_tooltip text="pod" term_id="pod">}} when a deployment's `replicas` field is unsatisfied).
51+
The control plane's components make global decisions about the cluster (for example, scheduling),
52+
as well as detecting and responding to cluster events (for example, starting up a new
53+
{{< glossary_tooltip text="pod" term_id="pod">}} when a deployment's
54+
`{{< glossary_tooltip text="replicas" term_id="replica" >}}` field is unsatisfied).
5155
-->
5256
## 控制平面组件(Control Plane Components) {#control-plane-components}
5357

5458
控制平面组件会为集群做出全局决策,比如资源的调度。
55-
以及检测和响应集群事件,例如当不满足部署的 `replicas` 字段时,
56-
要启动新的 {{< glossary_tooltip text="pod" term_id="pod">}})。
59+
以及检测和响应集群事件,例如当不满足部署的 `{{< glossary_tooltip text="replicas" term_id="replica" >}}`
60+
字段时,要启动新的 {{< glossary_tooltip text="Pod" term_id="pod">}})。
5761

5862
<!--
5963
Control plane components can be run on any machine in the cluster. However,
@@ -98,7 +102,7 @@ The above is not an exhaustive list.
98102
有许多不同类型的控制器。以下是一些例子:
99103

100104
* 节点控制器(Node Controller):负责在节点出现故障时进行通知和响应
101-
* 任务控制器(Job Controller):监测代表一次性任务的 Job 对象,然后创建 Pods 来运行这些任务直至完成
105+
* 任务控制器(Job Controller):监测代表一次性任务的 Job 对象,然后创建 Pod 来运行这些任务直至完成
102106
* 端点分片控制器(EndpointSlice controller):填充端点分片(EndpointSlice)对象(以提供 Service 和 Pod 之间的链接)。
103107
* 服务账号控制器(ServiceAccount controller):为新的命名空间创建默认的服务账号(ServiceAccount)。
104108

@@ -187,9 +191,11 @@ see [Addons](/docs/concepts/cluster-administration/addons/).
187191
<!--
188192
### DNS
189193
190-
While the other addons are not strictly required, all Kubernetes clusters should have [cluster DNS](/docs/concepts/services-networking/dns-pod-service/), as many examples rely on it.
194+
While the other addons are not strictly required, all Kubernetes clusters should have
195+
[cluster DNS](/docs/concepts/services-networking/dns-pod-service/), as many examples rely on it.
191196
192-
Cluster DNS is a DNS server, in addition to the other DNS server(s) in your environment, which serves DNS records for Kubernetes services.
197+
Cluster DNS is a DNS server, in addition to the other DNS server(s) in your environment,
198+
which serves DNS records for Kubernetes services.
193199
194200
Containers started by Kubernetes automatically include this DNS server in their DNS searches.
195201
-->
@@ -206,7 +212,9 @@ Kubernetes 启动的容器自动将此 DNS 服务器包含在其 DNS 搜索列
206212
<!--
207213
### Web UI (Dashboard)
208214
209-
[Dashboard](/docs/tasks/access-application-cluster/web-ui-dashboard/) is a general purpose, web-based UI for Kubernetes clusters. It allows users to manage and troubleshoot applications running in the cluster, as well as the cluster itself.
215+
[Dashboard](/docs/tasks/access-application-cluster/web-ui-dashboard/) is a general purpose,
216+
web-based UI for Kubernetes clusters. It allows users to manage and troubleshoot applications
217+
running in the cluster, as well as the cluster itself.
210218
-->
211219
### Web 界面(仪表盘) {#web-ui-dashboard}
212220

@@ -218,7 +226,8 @@ Kubernetes 启动的容器自动将此 DNS 服务器包含在其 DNS 搜索列
218226
<!--
219227
### Container Resource Monitoring
220228
221-
[Container Resource Monitoring](/docs/tasks/debug/debug-cluster/resource-usage-monitoring/) records generic time-series metrics
229+
[Container Resource Monitoring](/docs/tasks/debug/debug-cluster/resource-usage-monitoring/)
230+
records generic time-series metrics
222231
about containers in a central database, and provides a UI for browsing that data.
223232
-->
224233
### 容器资源监控 {#container-resource-monitoring}
@@ -254,7 +263,8 @@ allocating IP addresses to pods and enabling them to communicate with each other
254263

255264
<!--
256265
Learn more about the following:
257-
* [Nodes](/docs/concepts/architecture/nodes/) and [their communication](/docs/concepts/architecture/control-plane-node-communication/) with the control plane.
266+
* [Nodes](/docs/concepts/architecture/nodes/) and [their communication](/docs/concepts/architecture/control-plane-node-communication/)
267+
with the control plane.
258268
* Kubernetes [controllers](/docs/concepts/architecture/controller/).
259269
* [kube-scheduler](/docs/concepts/scheduling-eviction/kube-scheduler/) which is the default scheduler for Kubernetes.
260270
* Etcd's official [documentation](https://etcd.io/docs/).

content/zh-cn/docs/concepts/overview/working-with-objects/names.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,17 @@ This means the name must:
136136
- 必须以字母开头
137137
- 必须以字母数字结尾
138138

139+
{{< note >}}
140+
<!--
141+
The only difference between the RFC 1035 and RFC 1123
142+
label standards is that RFC 1123 labels are allowed to
143+
start with a digit, whereas RFC 1035 labels can start
144+
with a lowercase alphabetic character only.
145+
-->
146+
RFC 1035 和 RFC 1123 标签标准之间的唯一区别是 RFC 1123
147+
标签允许以数字开头,而 RFC 1035 标签只能以小写字母字符开头。
148+
{{< /note >}}
149+
139150
<!--
140151
### Path Segment Names
141152
@@ -191,4 +202,4 @@ UUID 是标准化的,见 ISO/IEC 9834-8 和 ITU-T X.667。
191202
* See the [Identifiers and Names in Kubernetes](https://git.k8s.io/design-proposals-archive/architecture/identifiers.md) design document.
192203
-->
193204
* 进一步了解 Kubernetes [标签](/zh-cn/docs/concepts/overview/working-with-objects/labels/)和[注解](/zh-cn/docs/concepts/overview/working-with-objects/annotations/)。
194-
* 参阅 [Kubernetes 标识符和名称](https://git.k8s.io/design-proposals-archive/architecture/identifiers.md)的设计文档
205+
* 参阅 [Kubernetes 标识符和名称](https://git.k8s.io/design-proposals-archive/architecture/identifiers.md)的设计文档

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

+53-8
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,22 @@ The tutorial provides a container image that uses NGINX to echo back all the req
5151

5252
<!--
5353
This tutorial assumes that you have already set up `minikube`.
54-
See [minikube start](https://minikube.sigs.k8s.io/docs/start/) for installation instructions.
54+
See __Step 1__ in [minikube start](https://minikube.sigs.k8s.io/docs/start/) for installation instructions.
55+
-->
56+
本教程假设你已经安装了 `minikube`
57+
有关安装说明,请参阅 [minikube start](https://minikube.sigs.k8s.io/docs/start/)**步骤 1**
5558

59+
{{< note >}}
60+
<!--
61+
Only execute the instructions in __Step 1, Installation__. The rest is covered on this page.
62+
-->
63+
仅执行**步骤 1:安装**中的说明,其余内容均包含在本页中。
64+
{{< /note >}}
65+
66+
<!--
5667
You also need to install `kubectl`.
5768
See [Install tools](/docs/tasks/tools/#kubectl) for installation instructions.
5869
-->
59-
本教程假设你已经安装了 `minikube`
60-
有关安装说明,请参阅 [minikube start](https://minikube.sigs.k8s.io/docs/start/)
61-
6270
你还需要安装 `kubectl`
6371
有关安装说明,请参阅[安装工具](/zh-cn/docs/tasks/tools/#kubectl)
6472

@@ -394,7 +402,7 @@ Minikube 有一组内置的{{< glossary_tooltip text="插件" term_id="addons" >
394402
```
395403

396404
<!--
397-
2. Enable an addon, for example, `metrics-server`:
405+
1. Enable an addon, for example, `metrics-server`:
398406
-->
399407
2. 启用插件,例如 `metrics-server`
400408

@@ -413,7 +421,7 @@ Minikube 有一组内置的{{< glossary_tooltip text="插件" term_id="addons" >
413421
```
414422

415423
<!--
416-
3. View the Pod and Service you created by installing that addon:
424+
1. View the Pod and Service you created by installing that addon:
417425
-->
418426
3. 查看通过安装该插件所创建的 Pod 和 Service:
419427

@@ -449,9 +457,37 @@ Minikube 有一组内置的{{< glossary_tooltip text="插件" term_id="addons" >
449457
```
450458

451459
<!--
452-
4. Disable `metrics-server`:
460+
1. Check the output from `metrics-server`:
453461
-->
454-
4. 禁用 `metrics-server`
462+
4. 检查 `metrics-server` 的输出:
463+
464+
```shell
465+
kubectl top pods
466+
```
467+
468+
<!--
469+
The output is similar to:
470+
-->
471+
输出类似于:
472+
473+
```
474+
NAME CPU(cores) MEMORY(bytes)
475+
hello-node-ccf4b9788-4jn97 1m 6Mi
476+
```
477+
478+
<!--
479+
If you see the following message, wait, and try again:
480+
-->
481+
如果你看到以下消息,请等待并重试:
482+
483+
```
484+
error: Metrics API not available
485+
```
486+
487+
<!--
488+
1. Disable `metrics-server`:
489+
--->
490+
5. 禁用 `metrics-server`
455491

456492
```shell
457493
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
505541
-->
506542
如果你还想使用 Minikube 进一步学习 Kubernetes,那就不需要删除 Minikube。
507543

544+
<!--
545+
## Conclusion
546+
547+
This page covered the basic aspects to get a minikube cluster up and running. You are now ready to deploy applications.
548+
-->
549+
## 结论
550+
551+
本页介绍了启动和运行 minikube 集群的基本知识,现在部署应用的准备工作已经完成。
552+
508553
## {{% heading "whatsnext" %}}
509554

510555
<!--

0 commit comments

Comments
 (0)