Kustomize
$ kustomize Foundation Low RiskKustomize (kustomize) customizes Kubernetes YAML manifests across base and overlay directories without templating languages, executing kustomize build deterministically on local files with zero direct cluster mutation.
brew install kustomize kustomize build is a fast, deterministic local manifest renderer that pairs naturally with kubectl diff in shell pipelines.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic, non-interactive kustomize build outputs clean YAML rather than JSON, easily piped to kubectl or yq.
- Pure non-interactive YAML generation via
kustomize build
Cannot mutate Kubernetes clusters directly; only reads/renders local manifests (exec plugins disabled by default).
- Zero remote cluster mutations; exec plugins off by default
Static Go binary via Homebrew, go install, or standalone download (also embedded in kubectl -k).
- Single Go binary across macOS, Linux, and Windows
Clean base/overlay composition for multi-environment Kubernetes manifests.
- Standard Kubernetes SIGs manifest overlay engine
Official kubernetes-sigs/kustomize project under CNCF / Apache-2.0.
- Official
kubernetes-sigs/kustomizerepository
Good command reference and kustomize.io, though kubectl -k vs standalone kustomize version skew can confuse users.
- Kubernetes SIGs Kustomize documentation
Security, Auth & Guardrails
Requires no cluster credentials for local overlays; remote Git bases inherit local Git/SSH configuration.
100% open-source (Apache-2.0) and executes locally with zero cloud charges.
# Kustomize Agent Rules - Run `kustomize build <dir>` to verify overlay patches compile cleanly before committing or piping to `kubectl diff -f -`. - Avoid `--enable-alpha-plugins` or `--enable-exec` on untrusted repositories.
Agent-Ready Command Recipes
Safe Read-Only Queries
kustomize build overlays/prod
Outputs deterministic Kubernetes YAML without touching any cluster.
kustomize cfg tree overlays/prod
Displays the hierarchical resource summary of a Kustomize directory.
Strengths for Agents
- + Zero cluster side effects—
kustomize buildis a pure deterministic renderer. - + Exec plugins and Helm inflation are disabled unless explicitly opted in.
- + Fast single Go binary with clean base/overlay GitOps ergonomics.
Caveats & Pitfalls
- ! Outputs YAML rather than JSON natively; pair with
yqif JSON is required. - ! Standalone
kustomizev5 often has newer features than the version embedded insidekubectl apply -k.