When you create any Kubernetes object, such as a Pod, Deployment, 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.
Working with names
Getting ready
Kubernetes allows us to assign a name with the following restrictions:
- Up to 253 characters
- Lowercase of alphabet and numeric characters
- May contain special characters in the middle, but only dashs (-) and dots (.)
How to do it...
For assigning a name to the Pod, follow the following steps:
- The following example is the...