k8s:core:metadata
Table of Contents
metadata
metadata contains information about the Kubernetes object.
It does NOT define behavior — only identity and labels.
—
Common fields
- name → unique object name
- namespace → where it belongs
- labels → tags for selection
- annotations → extra info
—
Example
metadata: name: my-app labels: app: web
—
Real-world example
labels help connect objects:
Service → selects Pods using labels
selector: app: web
—
Key idea
metadata = “who is this object?”
k8s/core/metadata.txt · Last modified: by phong2018
