diff --git a/content/zh-cn/docs/concepts/overview/working-with-objects/names.md b/content/zh-cn/docs/concepts/overview/working-with-objects/names.md index 85710cda6a..8b8bea11b6 100644 --- a/content/zh-cn/docs/concepts/overview/working-with-objects/names.md +++ b/content/zh-cn/docs/concepts/overview/working-with-objects/names.md @@ -3,6 +3,14 @@ title: 对象名称和 IDs content_type: concept weight: 20 --- + @@ -21,10 +29,10 @@ For example, you can only have one Pod named `myapp-1234` within the same [names 中有一个名为 `myapp-1234` 的 Pod,但是可以命名一个 Pod 和一个 Deployment 同为 `myapp-1234`。 对于用户提供的非唯一性的属性,Kubernetes 提供了 -[标签(Labels)](/zh-cn/docs/concepts/working-with-objects/labels)和 +[标签(Labels)](/zh-cn/docs/concepts/overview/working-with-objects/labels/)和 [注解(Annotation)](/zh-cn/docs/concepts/overview/working-with-objects/annotations/)机制。 @@ -75,7 +83,7 @@ DNS 子域名的定义可参见 [RFC 1123](https://tools.ietf.org/html/rfc1123) - 必须以字母数字结尾 下面是一个名为 `nginx-demo` 的 Pod 的配置清单: @@ -149,10 +157,10 @@ spec: - containerPort: 80 ``` +{{< note >}} -{{< note >}} 某些资源类型可能具有额外的命名约束。 {{< /note >}} @@ -175,5 +183,3 @@ UUIDs 是标准化的,见 ISO/IEC 9834-8 和 ITU-T X.667。 --> * 进一步了解 Kubernetes [标签](/zh-cn/docs/concepts/overview/working-with-objects/labels/) * 参阅 [Kubernetes 标识符和名称](https://git.k8s.io/design-proposals-archive/architecture/identifiers.md)的设计文档 - -