March 2017
Beginner to intermediate
925 pages
18h 11m
English
When you create any Kubernetes objects such as a pod, replication controller and service, you can assign a name to it. The names in Kubernetes are spatially unique, which means you cannot assign the same name in the pods.
Kubernetes allows us to assign a name with the following restrictions:
The following example is the pod definition that assigns the pod name as my-pod, to the container name as my-container, you can successfully create it as follows:
# cat my-pod.yaml apiVersion: v1 kind: Pod metadata: name: my-pod spec: containers: - name: my-container image: ...
Read now
Unlock full access