Skip to content

Commit

Permalink
zh-trans:/docs/concepts/overview/working-with-objects/names.md
Browse files Browse the repository at this point in the history
Signed-off-by: PingWang <wang.ping5@zte.com.cn>

update /docs/concepts/overview/working-with-objects/names.md

Signed-off-by: PingWang <wang.ping5@zte.com.cn>
  • Loading branch information
ping035627 committed Oct 11, 2019
1 parent af66c0a commit 13b53e0
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions content/zh/docs/concepts/overview/working-with-objects/names.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
title: 名称
content_template: templates/concept
weight: 20
---

{{% capture overview %}}

<!--
All objects in the Kubernetes REST API are unambiguously identified by a Name and a UID.
-->
Kubernetes REST API中的所有对象都由名称和UID明确标识。

<!--
For non-unique user-provided attributes, Kubernetes provides [labels](/docs/user-guide/labels) and [annotations](/docs/concepts/overview/working-with-objects/annotations/).
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.
-->
对于非唯一的用户提供的属性,Kubernetes提供了[标签](/docs/user-guide/labels)[注释](/docs/concepts/overview/working-with-objects/annotations/)

有关名称和UIDs的精确语法规则,请参见[标识符设计文档](https://git.k8s.io/community/contributors/design-proposals/architecture/identifiers.md)

{{% /capture %}}


{{% capture body %}}

<!--
## Names1
-->
## 名称

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

<!--
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.
-->
按照惯例,Kubernetes资源的名称最大长度应为253个字符,由小写字母、数字、`-``.`组成,但某些资源有更具体的限制。

<!--
For example, here’s the configuration file with a Pod name as `nginx-demo` and a Container name as `nginx`:
-->
例如,下面是一个配置文件,Pod名为“nginx demo”,容器名为“nginx”:

```yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx-demo
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
```
## UIDs
{{< glossary_definition term_id="uid" length="all" >}}
{{% /capture %}}

0 comments on commit 13b53e0

Please sign in to comment.