You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All objects in the Kubernetes REST API are unambiguously identified by a Name and a UID.
10
+
Each object in your cluster has a [_Name_](#names) that is unique for that type of resource.
11
+
Every Kubernetes object also has a [_UID_](#uids) that is unique across your whole cluster.
12
+
13
+
For example, you can only have one Pod named `myapp-1234` within the same [namespace](/docs/concepts/overview/working-with-objects/namespaces/), but you can have one Pod and one Deployment that are each named `myapp-1234`.
11
14
-->
12
15
13
-
Kubernetes REST API 中的所有对象都由名称和 UID 明确标识。
16
+
集群中的每一个对象都一个[_名称_](#名称) 来标识在同类资源中的唯一性。
17
+
18
+
每个 Kubernetes 对象也有一个[_UID_](#uids) 来标识在整个集群中的唯一性。
19
+
20
+
比如,在同一个[namespace](/docs/concepts/overview/working-with-objects/namespaces/)中只能命名一个名为 `myapp-1234` 的 Pod, 但是可以命名一个 Pod 和一个 Deployment 同为 `myapp-1234`.
14
21
15
22
<!--
16
23
For non-unique user-provided attributes, Kubernetes provides [labels](/docs/user-guide/labels) and [annotations](/docs/concepts/overview/working-with-objects/annotations/).
17
24
18
-
See the [identifiers design doc](https://git.k8s.io/community/contributors/design-proposals/architecture/identifiers.md) for the precise syntax rules for Names and UIDs.
25
+
See the [identifiers design doc](https://git.k8s.io/community/contributors/design-proposals/architecture/identifiers.md) for the precise syntax rules for Names and
By convention, the names of Kubernetes resources should be up to maximum length of 253 characters and consist of lower case alphanumeric characters, `-`, and `.`, but certain resources have more specific restrictions.
53
+
Below are three types of commonly used name constraints for resources.
54
+
-->
55
+
56
+
以下是比较常见的三种资源命名约束。
57
+
58
+
<!--
59
+
### DNS Subdomain Names
60
+
61
+
Most resource types require a name that can be used as a DNS subdomain name
62
+
as defined in [RFC 1123](https://tools.ietf.org/html/rfc1123).
63
+
This means the name must:
64
+
65
+
- contain no more than 253 characters
66
+
- contain only lowercase alphanumeric characters, '-' or '.'
Kubernetes UIDs are universally unique identifiers (also known as UUIDs).
146
+
UUIDs are standardized as ISO/IEC 9834-8 and as ITU-T X.667.
147
+
-->
148
+
Kubernetes UIDs 是通用的唯一标识符 (也叫 UUIDs).
149
+
UUIDs 是标准化的,见 ISO/IEC 9834-8 和 ITU-T X.667.
150
+
151
+
{{% /capture %}}
152
+
153
+
{{% capture whatsnext %}}
154
+
<!--
155
+
* Read about [labels](/docs/concepts/overview/working-with-objects/labels/) in Kubernetes.
156
+
* See the [Identifiers and Names in Kubernetes](https://git.k8s.io/community/contributors/design-proposals/architecture/identifiers.md) design document.
0 commit comments