ObjectMeta
The ObjectMeta
object is used for metadata. It includes fields that provide context and identity for resources. Basically, it allows for identification of resources.
Some of the most important attributes of the ObjectMeta
object are:
- name:
- type:
string
- description: the name of the object (unique within the namespace)
- namespace:
- type:
string
- description: the namespace in which the object resides
- labels
- type:
map<string, string>
- description: key-value pairs that can be used to organize and select objects - often used for grouping, searching and managing sets of objects (i.e pods, services, pvs belonging to a specific api version)
- annotations:
- type:
map<string, string>
- description: key-value pairs used to store arbitrary metadata - can be used to attach non-identifying metadata to objects (i.e description of what a Pod does, storing external IDs of a resource, storing configuration hints - but also Ingress annotations)
- uid:
- type:
string
- description: unique identifier, set by Kubernetes (unique across the cluster)
- creationTimestamp:
- type:
string
- decsription: time at which the object was created, set by Kubernetes