kustomize

Compose Kubernetes manifests from bases and overlays with declarative patches.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/ToanPV90/dotfiles --skill kustomize-toanpv90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kustomize
Source: https://github.com/ToanPV90/dotfiles/tree/main/agents/.agents/skills/kustomize
Command: npx skills add https://github.com/ToanPV90/dotfiles --skill kustomize-toanpv90

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Kustomize removes the need for templating Kubernetes manifests by letting you customize YAML declaratively across environments, reducing drift and repeated edits.

Core Features & Use Cases

  • Environment overlays: Build a base configuration and layer environment-specific changes using overlays like development, staging, and production.
  • Declarative patching: Modify existing resources with strategic merge patches, JSON patches, or inline patches to adjust replicas, resources, labels, and more.
  • Config and secret generation: Generate ConfigMaps and Secrets directly from literals, env files, or referenced files, keeping configuration alongside manifests.

Quick Start

Generate and apply the fully rendered manifests for production by running kubectl apply -k overlays/production in your Kubernetes repo that follows the base/overlays structure.

Frequently Asked Questions about kustomize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Kubernetes manifests across multiple environments without Helm-style templating?

Kustomize declaratively customizes Kubernetes manifests across environments by composing shared bases with environment-specific overlays, eliminating the need for Helm-style templating and reducing configuration drift.

What is the best way to declaratively patch existing Kubernetes resources for staging or production?

Declarative patching in Kustomize modifies existing Kubernetes resources using strategic merge patches, JSON patches, or inline patches to adjust replicas, resource limits, and labels for different deployment targets.

How do I generate Kubernetes ConfigMaps and Secrets from existing files without duplicating data?

Kustomize generates ConfigMaps and Secrets directly from literal values, environment files, or referenced files, keeping configuration data alongside your manifests and avoiding manual duplication.

Can I use kubectl kustomize to build and apply overlays to my Kubernetes cluster?

Yes, Kustomize maintains full build and apply compatibility with kubectl, allowing you to render and deploy fully customized manifests by running kubectl apply -k overlays/production.

When should I choose Kustomize overlays over other Kubernetes configuration management tools?

Choose Kustomize overlays when you need to declaratively manage multi-environment configurations and patch third-party resources without introducing template variables or maintaining separate duplicated manifests.

How does kustomization.yaml drive resource composition for Kubernetes deployments?

The kustomization.yaml file drives resource composition by defining bases, overlays, and patch mechanisms, serving as the declarative entry point for customizing Kubernetes manifests without templating.