From a7b121f345da45b436549d1bf88b3eb93d12c1c5 Mon Sep 17 00:00:00 2001 From: SataQiu <1527062125@qq.com> Date: Fri, 7 Dec 2018 22:31:36 +0800 Subject: [PATCH] zh-trans: add docs/concepts/overview/working-with-objects/names.md (#11557) * zh-trans: add docs/concepts/overview/working-with-objects/names.md * update names.md --- .../overview/working-with-objects/names.md | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 content/zh/docs/concepts/overview/working-with-objects/names.md diff --git a/content/zh/docs/concepts/overview/working-with-objects/names.md b/content/zh/docs/concepts/overview/working-with-objects/names.md new file mode 100644 index 0000000000..4645df7e15 --- /dev/null +++ b/content/zh/docs/concepts/overview/working-with-objects/names.md @@ -0,0 +1,66 @@ +--- +title: 名称 +content_template: templates/concept +weight: 20 +--- + + + +{{% capture overview %}} + +Kubernetes REST API 中的所有对象都通过名称和 UID 明确标识。 + + + +对于用户提供的非惟一属性,Kubernetes 提供 [标签](/docs/user-guide/labels) 和 +[注解](/docs/concepts/overview/working-with-objects/annotations/)。 + + + +查看 [标识设计文档](https://git.k8s.io/community/contributors/design-proposals/architecture/identifiers.md) 获取名称和 UID 的精确语法规则。 + + + +{{% /capture %}} + + +{{% capture body %}} + +## 名称 + + + +{{< glossary_definition term_id="name" length="all" >}} + +按照惯例,Kubernetes 资源的名称最长可达 253 个字符,并由小写字母、数字、 “-” 和 “.” 组成,但某些资源可能有更具体的限制。 + + + +## UID + + + +{{< glossary_definition term_id="uid" length="all" >}} + +{{% /capture %}}