Skip to content

Commit cfbc937

Browse files
committed
[zh-cn] sync annotations labels owners-dependents object-management
Signed-off-by: xin.li <[email protected]>
1 parent de688b0 commit cfbc937

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ weight: 60
1414

1515
<!--
1616
You can use Kubernetes annotations to attach arbitrary non-identifying metadata
17-
to objects. Clients such as tools and libraries can retrieve this metadata.
17+
to {{< glossary_tooltip text="objects" term_id="object" >}}.
18+
Clients such as tools and libraries can retrieve this metadata.
1819
-->
19-
你可以使用 Kubernetes 注解为对象附加任意的非标识的元数据。客户端程序(例如工具和库)能够获取这些元数据信息。
20+
你可以使用 Kubernetes 注解为{{< glossary_tooltip text="对象" term_id="object" >}}附加任意的非标识的元数据。
21+
客户端程序(例如工具和库)能够获取这些元数据信息。
2022

2123
<!-- body -->
2224
<!--

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ weight: 40
1414
<!-- overview -->
1515

1616
<!--
17-
_Labels_ are key/value pairs that are attached to objects, such as pods.
17+
_Labels_ are key/value pairs that are attached to
18+
{{< glossary_tooltip text="objects" term_id="object" >}} such as pods.
1819
Labels are intended to be used to specify identifying attributes of objects
1920
that are meaningful and relevant to users, but do not directly imply semantics
2021
to the core system. Labels can be used to organize and to select subsets of
2122
objects. Labels can be attached to objects at creation time and subsequently
2223
added and modified at any time. Each object can have a set of key/value labels
2324
defined. Each Key must be unique for a given object.
2425
-->
25-
**标签(Labels)** 是附加到 Kubernetes 对象(比如 Pod)上的键值对。
26+
**标签(Labels)** 是附加到 Kubernetes
27+
{{< glossary_tooltip text="对象" term_id="object" >}}(比如 Pod)上的键值对。
2628
标签旨在用于指定对用户有意义且相关的对象的标识属性,但不直接对核心系统有语义含义。
2729
标签可以用于组织和选择对象的子集。标签可以在创建时附加到对象,随后可以随时添加和修改。
2830
每个对象都可以定义一组键/值标签。每个键对于给定对象必须是唯一的。

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ weight: 20
77
<!-- overview -->
88
<!--
99
The `kubectl` command-line tool supports several different ways to create and manage
10-
Kubernetes objects. This document provides an overview of the different
10+
Kubernetes {{< glossary_tooltip text="objects" term_id="object" >}}. This document provides an overview of the different
1111
approaches. Read the [Kubectl book](https://kubectl.docs.kubernetes.io) for
1212
details of managing objects by Kubectl.
1313
-->
14-
`kubectl` 命令行工具支持多种不同的方式来创建和管理 Kubernetes 对象。
14+
`kubectl` 命令行工具支持多种不同的方式来创建和管理 Kubernetes
15+
{{< glossary_tooltip text="对象" term_id="object" >}}。
1516
本文档概述了不同的方法。
1617
阅读 [Kubectl book](https://kubectl.docs.kubernetes.io/zh/) 来了解 kubectl
1718
管理对象的详细信息。

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

+6-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ weight: 60
1212
<!-- overview -->
1313

1414
<!--
15-
In Kubernetes, some {{< glossary_tooltip text="objects" term_id="Object" >}} are *owners* of other objects. For example, a
16-
{{<glossary_tooltip text="ReplicaSet" term_id="replica-set">}} is the owner of a set of {{<glossary_tooltip text="Pods" term_id="pod">}}. These owned objects are *dependents*
15+
In Kubernetes, some {{< glossary_tooltip text="objects" term_id="object" >}} are
16+
*owners* of other objects. For example, a
17+
{{<glossary_tooltip text="ReplicaSet" term_id="replica-set">}} is the owner
18+
of a set of Pods. These owned objects are *dependents* of their owner.
1719
-->
1820

1921
在 Kubernetes 中,一些{{< glossary_tooltip text="对象" term_id="Object" >}}是其他对象的“属主(Owner)”。
@@ -22,12 +24,12 @@ In Kubernetes, some {{< glossary_tooltip text="objects" term_id="Object" >}} are
2224

2325
<!--
2426
Ownership is different from the [labels and selectors](/docs/concepts/overview/working-with-objects/labels/)
25-
mechanism that some resources also use. For example, consider a Service that
27+
mechanism that some resources also use. For example, consider a Service that
2628
creates `EndpointSlice` objects. The Service uses {{<glossary_tooltip text="labels" term_id="label">}} to allow the control plane to
2729
determine which `EndpointSlice` objects are used for that Service. In addition
2830
to the labels, each `EndpointSlice` that is managed on behalf of a Service has
2931
an owner reference. Owner references help different parts of Kubernetes avoid
30-
interfering with objects they don’t control.
32+
interfering with objects they don’t control.
3133
-->
3234
属主关系不同于一些资源使用的[标签和选择算符](/zh-cn/docs/concepts/overview/working-with-objects/labels/)机制。
3335
例如,有一个创建 `EndpointSlice` 对象的 Service,

0 commit comments

Comments
 (0)