Table of Contents

metadata

metadata contains information about the Kubernetes object.

It does NOT define behavior — only identity and labels.

Common fields

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?”