Skip to content

Commit f046d5f

Browse files
Add back object meta
1 parent 217491e commit f046d5f

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: ObjectMeta
3+
description: ''
4+
unlisted: true
5+
---
6+
# [ObjectMeta](https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/object-meta/)
7+
8+
The `ObjectMeta` object is used for metadata. It includes fields that provide context and identity for resources. Basically, it allows for identification of resources.
9+
10+
Some of the most important attributes of the `ObjectMeta` object are:
11+
12+
1. **name**:
13+
- type: `string`
14+
- description: the name of the object (unique within the namespace)
15+
16+
1. **namespace**:
17+
- type: `string`
18+
- description: the namespace in which the object resides
19+
20+
1. **labels**
21+
- type: `map<string, string>`
22+
- 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)
23+
24+
1. **annotations**:
25+
- type: `map<string, string>`
26+
- 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](https://kubernetes.io/docs/concepts/services-networking/ingress/#the-ingress-resource))
27+
28+
1. **uid**:
29+
- type: `string`
30+
- description: unique identifier, set by Kubernetes (unique across the cluster)
31+
32+
1. **creationTimestamp**:
33+
- type: `string`
34+
- decsription: time at which the object was created, set by Kubernetes

0 commit comments

Comments
 (0)