Pcornel
Automation · Kubernetes Automation

Manifests

Cheat sheet · https://pcornel.dk/topic.php?topic=5793

Back to the Topic

Answer

Manifests are YAML or JSON files describing Kubernetes objects with apiVersion, kind, metadata and spec, organized per application and environment, often with Kustomize overlays.

Remember

  • Manifests contain apiVersion, kind, metadata and spec.
  • Organize per application and environment.
  • Kustomize overlays avoid copying.

First checks

  • kubeconform -strict manifests/ — schema validation
  • kubectl apply --dry-run=server -f manifests/ — server validation
  • Labels and annotations standard — consistency

Verify in this order

YAML → validation → API

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5793

Confirmation

Confirm action

Continue?