Skip to content

Commit 8ae2209

Browse files
committed
[zh] Sync changes from English site (2)
1 parent 7a44e1a commit 8ae2209

File tree

6 files changed

+224
-251
lines changed

6 files changed

+224
-251
lines changed

content/zh/docs/concepts/overview/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
title: 概述
33
weight: 20
44
description: 获得 Kubernetes 及其构件的高层次概要。
5+
sitemap:
6+
priority: 0.9
57
---

content/zh/docs/concepts/overview/kubernetes-api.md

Lines changed: 113 additions & 195 deletions
Large diffs are not rendered by default.

content/zh/docs/concepts/overview/what-is-kubernetes.md

Lines changed: 94 additions & 43 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,18 @@ _注解(Annotations)_ 存储的形式是键/值对。有效的注解键分
121121
并允许使用破折号(`-`),下划线(`_`),点(`.`)和字母数字。
122122
前缀是可选的。如果指定,则前缀必须是DNS子域:一系列由点(`.`)分隔的DNS标签,
123123
总计不超过253个字符,后跟斜杠(`/`)。
124-
如果省略前缀,则假定注释键对用户是私有的。 由系统组件添加的注释
124+
如果省略前缀,则假定注解键对用户是私有的。 由系统组件添加的注解
125125
(例如,`kube-scheduler``kube-controller-manager``kube-apiserver``kubectl`
126-
或其他第三方组件),必须为终端用户添加注释前缀
126+
或其他第三方组件),必须为终端用户添加注解前缀
127127

128128
<!--
129129
The `kubernetes.io/` and `k8s.io/` prefixes are reserved for Kubernetes core components.
130130
131-
For example, heres the configuration file for a Pod that has the annotation `imageregistry: https://hub.docker.com/` :
131+
For example, here's the configuration file for a Pod that has the annotation `imageregistry: https://hub.docker.com/` :
132132
-->
133133
`kubernetes.io/``k8s.io/` 前缀是为Kubernetes核心组件保留的。
134134

135-
例如,这是Pod的配置文件,其注释为 `imageregistry: https://hub.docker.com/`
135+
例如,下面是一个 Pod 的配置文件,其注解中包含 `imageregistry: https://hub.docker.com/`
136136

137137
```yaml
138138
apiVersion: v1

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ and the `spec` format for a `Deployment` can be found
191191
## {{% heading "whatsnext" %}}
192192

193193
<!--
194-
* [Kubernetes API overview](/docs/reference/using-api/api-overview/) explains some more API concepts
195-
* Learn about the most important basic Kubernetes objects, such as [Pod](/docs/concepts/workloads/pods/pod-overview/).
196-
* Learn about [controllers](/docs/concepts/architecture/controller/) in Kubernetes
194+
* Learn about the most important basic Kubernetes objects, such as [Pod](/docs/concepts/workloads/pods/).
195+
* Learn about [controllers](/docs/concepts/architecture/controller/) in Kubernetes.
196+
* [Using the Kubernetes API](/docs/reference/using-api/) explains some more API concepts.
197197
-->
198-
* [Kubernetes API 总览](/zh/docs/reference/using-api/api-overview/) 提供关于 API 概念的进一步阐述
199-
* 了解最重要的 Kubernetes 基本对象,例如 [Pod](/zh/docs/concepts/workloads/pods/)
200-
* 了解 Kubernetes 中的[控制器](/zh/docs/concepts/architecture/controller/)
198+
* 了解最重要的 Kubernetes 基本对象,例如 [Pod](/zh/docs/concepts/workloads/pods/)
199+
* 了解 Kubernetes 中的[控制器](/zh/docs/concepts/architecture/controller/)
200+
* [使用 Kubernetes API](/zh/docs/reference/using-api/) 一节解释了一些 API 概念。
201201

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ and [`replicationcontrollers`](/docs/concepts/workloads/controllers/replicationc
307307
also use label selectors to specify sets of other resources, such as
308308
[pods](/docs/concepts/workloads/pods/).
309309
-->
310-
### 在 API 对象上设置引用
310+
### 在 API 对象中设置引用
311311

312312
一些 Kubernetes 对象,例如 [`services`](/zh/docs/concepts/services-networking/service/)
313313
[`replicationcontrollers`](/zh/docs/concepts/workloads/controllers/replicationcontroller/)
@@ -323,9 +323,11 @@ Labels selectors for both objects are defined in `json` or `yaml` files using ma
323323
-->
324324
#### Service 和 ReplicationController
325325

326-
一个 `Service` 指向的一组 pods 是由标签选择算符定义的。同样,一个 `ReplicationController` 应该管理的 pods 的数量也是由标签选择算符定义的。
326+
一个 `Service` 指向的一组 Pods 是由标签选择算符定义的。同样,一个 `ReplicationController`
327+
应该管理的 pods 的数量也是由标签选择算符定义的。
327328

328-
两个对象的标签选择算符都是在 `json` 或者 `yaml` 文件中使用映射定义的,并且只支持 _基于等值_ 需求的选择算符:
329+
两个对象的标签选择算符都是在 `json` 或者 `yaml` 文件中使用映射定义的,并且只支持
330+
_基于等值_ 需求的选择算符:
329331

330332
```json
331333
"selector": {

0 commit comments

Comments
 (0)