Skip to content

Commit f00b721

Browse files
committed
[zh] sync /working-with-objects/names.md
1 parent d4d5eae commit f00b721

File tree

1 file changed

+12
-3
lines changed
  • content/zh-cn/docs/concepts/overview/working-with-objects

1 file changed

+12
-3
lines changed

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ For example, you can only have one Pod named `myapp-1234` within the same [names
3131
<!--
3232
For non-unique user-provided attributes, Kubernetes provides [labels](/docs/concepts/overview/working-with-objects/labels/) and [annotations](/docs/concepts/overview/working-with-objects/annotations/).
3333
-->
34-
对于用户提供的非唯一性的属性,Kubernetes 提供了
35-
[标签(Labels](/zh-cn/docs/concepts/overview/working-with-objects/labels/)
34+
对于用户提供的非唯一性的属性,Kubernetes
35+
提供了[标签(Label](/zh-cn/docs/concepts/overview/working-with-objects/labels/)
3636
[注解(Annotation)](/zh-cn/docs/concepts/overview/working-with-objects/annotations/)机制。
3737

3838
<!-- body -->
@@ -44,6 +44,16 @@ For non-unique user-provided attributes, Kubernetes provides [labels](/docs/conc
4444

4545
{{< glossary_definition term_id="name" length="all" >}}
4646

47+
<!--
48+
**Names must be unique across all [API versions](/docs/concepts/overview/kubernetes-api/#api-groups-and-versioning)
49+
of the same resource. API resources are distinguished by their API group, resource type, namespace
50+
(for namespaced resources), and name. In other words, API version is irrelevant in this context.**
51+
-->
52+
**名称在同一资源的所有
53+
[API 版本](/zh-cn/docs/concepts/overview/kubernetes-api/#api-groups-and-versioning)中必须是唯一的。
54+
这些 API 资源通过各自的 API 组、资源类型、名字空间(对于划分名字空间的资源)和名称来区分。
55+
换言之,API 版本在此上下文中是不相关的。**
56+
4757
{{< note >}}
4858
<!--
4959
In cases when objects represent a physical entity, like a Node representing a physical host, when the host is re-created under the same name without deleting and re-creating the Node, Kubernetes treats the new host as the old one, which may lead to inconsistencies.
@@ -70,7 +80,6 @@ This means the name must:
7080
- start with an alphanumeric character
7181
- end with an alphanumeric character
7282
-->
73-
7483
### DNS 子域名 {#dns-subdomain-names}
7584

7685
很多资源类型需要可以用作 DNS 子域名的名称。

0 commit comments

Comments
 (0)