Use this when writing and organizing Kubernetes manifests.
Manifests
Manifests are YAML or JSON files describing Kubernetes objects with apiVersion, kind, metadata and spec, organized per application and environment, often with Kustomize overlays.
1. Manifests are YAML resource definitions.
2. Validate schemas.
3. Server-side dry run.
4. Standard labels.
5. Version control.
YAML → validation → API
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as schema drift, selector overreach, admission rejection, controller lag, immutable fields, stale status and confusing created object with ready workload, choosing the cases most relevant to apiVersion/kind metadata, namespace/name identity, declarative fields, server defaulting/validation and tracking the exact manifest revision applied.
Step 2 Common mistakes Narrow the fault
- Manifests without resource limits.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Manifests contain apiVersion, kind, metadata and spec.
- Organize per application and environment.
- Kustomize overlays avoid copying.
kubeconform -strict manifests/— schema validationkubectl apply --dry-run=server -f manifests/— server validation- Labels and annotations standard — consistency
ReferenceWhy it matters1 section · depth on demand
In depth
A manifest is a YAML (or JSON) file describing a Kubernetes object: its kind, API version, metadata and desired spec. Applying manifests is how desired state is given to the cluster, and storing them in Git makes the cluster reproducible.
apiVersion: apps/v1
kind: Deployment
metadata:
name: netbox-sync
labels: { app: netbox-sync }
spec:
replicas: 1
selector: { matchLabels: { app: netbox-sync } }
template:
metadata: { labels: { app: netbox-sync } }
spec:
containers:
- name: sync
image: registry.example.com/netbox-sync:1.4.0
kubectl apply --dry-run=server -f deploy.yaml # validate against the API
kubectl diff -f deploy.yaml
kubeconform -strict deploy.yaml # schema check in CI
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Kubernetes Automation → Manifests is owned at runtime by the Kubernetes API server, admission chain and relevant controllers/reconcilers. The linked authority for bounded mechanics is Kubernetes Docs — Declarative Management of Kubernetes Objects; documentation support is separate from observed lab/production Evidence.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Kubernetes Automation > Manifests. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/declarative-config/ · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For apiVersion/kind metadata, namespace/name identity, declarative fields, server defaulting/validation and tracking the exact manifest revision applied, prefer typed fields and stable IDs over human presentation text.