For example, you can only have one Pod named “myapp-1234”, but you can have one Pod and one Deployment that are each named “myapp-1234”.
A client-provided string that refers to an object in a resource URL, such as
Only one object of a given kind can have a given name at a time. However, if you delete the object, you can make a new object with the same name.
Kubernetes resources can have names up to 253 characters long. The characters allowed in names are: digits (0-9), lower case letters (a-z),
Here’s an example manifest for a Pod named
apiVersion: v1 kind: Pod metadata: name: nginx-demo spec: containers: - name: nginx image: nginx:1.7.9 ports: - containerPort: 80
Note: Some resource types have additional restrictions on their names.
A Kubernetes systems-generated string to uniquely identify objects.
Every object created over the whole lifetime of a Kubernetes cluster has a distinct UID. It is intended to distinguish between historical occurrences of similar entities.
Kubernetes UIDs are universally unique identifiers (also known as UUIDs). UUIDs are standardized as ISO/IEC 9834-8 and as ITU-T X.667.
Was this page helpful?
Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on Stack Overflow. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.