Adding pod configuration file with names (#14971)

Adding pod configuration file with pod and container name. This explains the usage of names and how it looks like in actual YAML.
This commit is contained in:
Rajesh Deshpande 2019-06-20 00:40:33 +05:30 committed by Kubernetes Prow Robot
parent efe2d0fd99
commit 5a4b7a38bc
1 changed files with 15 additions and 0 deletions

View File

@ -26,6 +26,21 @@ See the [identifiers design doc](https://git.k8s.io/community/contributors/desig
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.
For example, heres the configuration file with a Pod name as `nginx-demo` and a Container name as `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" >}}