Skip to content

Commit

Permalink
[zh-cn] sync annotations labels owners-dependents object-management
Browse files Browse the repository at this point in the history
Signed-off-by: xin.li <xin.li@daocloud.io>
  • Loading branch information
my-git9 committed May 13, 2023
1 parent de688b0 commit cfbc937
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ weight: 60

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

<!-- body -->
<!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ weight: 40
<!-- overview -->

<!--
_Labels_ are key/value pairs that are attached to objects, such as pods.
_Labels_ are key/value pairs that are attached to
{{< glossary_tooltip text="objects" term_id="object" >}} such as pods.
Labels are intended to be used to specify identifying attributes of objects
that are meaningful and relevant to users, but do not directly imply semantics
to the core system. Labels can be used to organize and to select subsets of
objects. Labels can be attached to objects at creation time and subsequently
added and modified at any time. Each object can have a set of key/value labels
defined. Each Key must be unique for a given object.
-->
**标签(Labels)** 是附加到 Kubernetes 对象(比如 Pod)上的键值对。
**标签(Labels)** 是附加到 Kubernetes
{{< glossary_tooltip text="对象" term_id="object" >}}(比如 Pod)上的键值对。
标签旨在用于指定对用户有意义且相关的对象的标识属性,但不直接对核心系统有语义含义。
标签可以用于组织和选择对象的子集。标签可以在创建时附加到对象,随后可以随时添加和修改。
每个对象都可以定义一组键/值标签。每个键对于给定对象必须是唯一的。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ weight: 20
<!-- overview -->
<!--
The `kubectl` command-line tool supports several different ways to create and manage
Kubernetes objects. This document provides an overview of the different
Kubernetes {{< glossary_tooltip text="objects" term_id="object" >}}. This document provides an overview of the different
approaches. Read the [Kubectl book](https://kubectl.docs.kubernetes.io) for
details of managing objects by Kubectl.
-->
`kubectl` 命令行工具支持多种不同的方式来创建和管理 Kubernetes 对象。
`kubectl` 命令行工具支持多种不同的方式来创建和管理 Kubernetes
{{< glossary_tooltip text="对象" term_id="object" >}}。
本文档概述了不同的方法。
阅读 [Kubectl book](https://kubectl.docs.kubernetes.io/zh/) 来了解 kubectl
管理对象的详细信息。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ weight: 60
<!-- overview -->

<!--
In Kubernetes, some {{< glossary_tooltip text="objects" term_id="Object" >}} are *owners* of other objects. For example, a
{{<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*
In Kubernetes, some {{< glossary_tooltip text="objects" term_id="object" >}} are
*owners* of other objects. For example, a
{{<glossary_tooltip text="ReplicaSet" term_id="replica-set">}} is the owner
of a set of Pods. These owned objects are *dependents* of their owner.
-->

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

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

0 comments on commit cfbc937

Please sign in to comment.