# Kustomize Overlay Environment Templating

> Customizes environment-specific Kubernetes manifests using Kustomize overlays without complex Helm templating. Use when managing distinct dev, staging, and prod

- Skill: `bishnucd/kustomize-overlay-environment-templating` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add bishnucd/kustomize-overlay-environment-templating`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bishnucd/kustomize-overlay-environment-templating/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: Bishnucd (https://skillmd.com/u/bishnucd)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/bishnucd/kustomize-overlay-environment-templating

---

---
name: kustomize-overlay-environment-templating
description: Customizes environment-specific Kubernetes manifests using Kustomize overlays without complex Helm templating. Use when managing distinct dev, staging, and prod Kubernetes configs.
license: MIT
metadata:
  author: Community List Maintainers
  version: "1.0.0"
  source: "https://kustomize.io/"
---
# Kustomize Overlay Environment Templating

## Overview
Kustomize enables declarative manifest inheritance. A shared "base" defines core deployments and services, while "overlays" apply patches for replica counts, ingress hosts, and environment variables.

## Operational Workflow

1. **Structure directory tree**:
   - Structure directory tree: base/ containing raw manifests and overlays/{dev,staging,prod}/.

2. **Define base kustomization.yaml listing common resource files.**:
   - Define base kustomization.yaml listing common resource files.

3. **Apply overlay patches adding environment replicas, custom ConfigMaps, and resource limits.**:
   - Apply overlay patches adding environment replicas, custom ConfigMaps, and resource limits.

4. **Run kubectl kustomize overlays/prod to inspect rendered production manifests.**:
   - Run kubectl kustomize overlays/prod to inspect rendered production manifests.

## Recommended Tools & Environments
- Kustomize
- Kubernetes
- YAML
- GitOps

## Verification & Execution Criteria
- Pre-execution validation verifies all prerequisites and inputs.
- Step-by-step progress logging confirms intermediate state transitions.
- Post-execution checks verify output integrity and clean exit codes.

