Manage dev and prod Kubernetes differences with Kustomize

8 steps · about 1 h 39 min · Intermediate

  1. Declare objects with Kustomize (doc, Kubernetes docs, 25 min)

    The official walkthrough of kustomization.yaml and kubectl -k.

  2. See the Kustomize model (guide, Kubectl Book, 12 min)

    Explains bases, overlays and why you avoid templating.

  3. Share optional features with components (guide, Kubectl Book, 12 min)

    Lets overlays opt in to reusable pieces.

  4. Generate ConfigMaps and Secrets (guide, Kubectl Book, 12 min)

    Produces hashed config names so pods roll when values change.

  5. Apply labels, names and namespaces (guide, Kubectl Book, 10 min)

    Sets environment-wide metadata without editing each file.

  6. Preview output with kubectl kustomize (reference, Kubernetes docs, 8 min)

    Renders the final YAML so you review before applying.

  7. Diff before you apply (doc, Kubernetes docs, 8 min)

    Catches unexpected live changes in each environment.

  8. Apply the result with kubectl apply (reference, Kubernetes docs, 12 min)

    Covers server-side apply and pruning options.