Skip to content

Commit

Permalink
Add content/pt/docs/concepts/overview/working-with-objects/names.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelMassoni-zz committed Oct 21, 2019
1 parent a3ac7de commit bd63078
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "Objetos do Kubernetes"
weight: 40
---

58 changes: 58 additions & 0 deletions content/pt/docs/concepts/overview/working-with-objects/names.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
title: Nomes
content_template: templates/concept
weight: 20
---

{{% capture overview %}}

Cada objeto em um cluster possui um Nome que é único para aquele tipo de recurso.
Todo objeto do Kubernetes também possui um UID que é único para todo o cluster.

Por exemplo, você pode ter apenas um Pod chamado "myapp-1234", porém você pode ter um Pod
e um Deployment ambos com o nome "myapp-1234".

Para atributos não únicos providenciados por usuário, Kubernetes providencia [labels](/docs/concepts/overview/working-with-objects/labels/) e [annotations](/docs/concepts/overview/working-with-objects/annotations/).

{{% /capture %}}


{{% capture body %}}

## Nomes

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

Recursos Kubernetes podem ter nomes com até 253 caracteres. Os caracteres permitidos em nomes são: dígitos (0-9), letras minúsculas (a-z), `-`, e `.`.

A seguir, um exemplo para um Pod chamado `nginx-demo`.

```yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx-demo
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
```
{{< note >}}
Alguns tipos de recursos possuem restrições adicionais em seus nomes.
{{< /note >}}
## UIDs
{{< glossary_definition term_id="uid" length="all" >}}
Kubernetes UIDs são identificadores únicos universais (também chamados de UUIDs)
UUIDs são padronizados como ISO/IEC 9834-8 e como ITU-T X.667.
{{% /capture %}}
{{% capture Qual é o próximo %}}
* Leia sobre [labels](/docs/concepts/overview/working-with-objects/labels/) em Kubernetes.
* Consulte o documento de design [Identificadores e Nomes em Kubernetes](https://git.k8s.io/community/contributors/design-proposals/architecture/identifiers.md).
{{% /capture %}}

0 comments on commit bd63078

Please sign in to comment.