Manage dev and prod Kubernetes differences with Kustomize
8 steps · about 1 h 39 min · Intermediate
- Declare objects with Kustomize (doc, Kubernetes docs, 25 min)
The official walkthrough of kustomization.yaml and kubectl -k.
- See the Kustomize model (guide, Kubectl Book, 12 min)
Explains bases, overlays and why you avoid templating.
- Share optional features with components (guide, Kubectl Book, 12 min)
Lets overlays opt in to reusable pieces.
- Generate ConfigMaps and Secrets (guide, Kubectl Book, 12 min)
Produces hashed config names so pods roll when values change.
- Apply labels, names and namespaces (guide, Kubectl Book, 10 min)
Sets environment-wide metadata without editing each file.
- Preview output with kubectl kustomize (reference, Kubernetes docs, 8 min)
Renders the final YAML so you review before applying.
- Diff before you apply (doc, Kubernetes docs, 8 min)
Catches unexpected live changes in each environment.
- Apply the result with kubectl apply (reference, Kubernetes docs, 12 min)
Covers server-side apply and pruning options.