Kustomize
Apply kustomize configurations to multiple clusters.
Usage
Build and apply kustomize overlays to one or more clusters.
Examples
- “Apply kustomize from ./overlays/production to all clusters”
- “Build kustomize output from ./base”
- “Delete resources defined in ./overlays/staging kustomize”
What it does
- Builds kustomize output from the specified path
- Applies (or deletes) the rendered manifests to target clusters
- Reports success/failure per cluster
MCP Tools Used
kustomize_build- Render kustomize output without applyingkustomize_apply- Build and apply to clusterskustomize_delete- Build and delete those resources
Implementation
Use the kustomize_apply tool with:
path: Path to directory containing kustomization.yaml (required)dry_run: Preview without applyingclusters: Target clusters (all if not specified)
Examples of Tool Calls
Build only:
{
"path": "./overlays/production"
}
Apply to all clusters:
{
"path": "./overlays/production",
"dry_run": false
}
Delete from specific clusters:
{
"path": "./overlays/staging",
"clusters": ["staging-1", "staging-2"]
}
Prerequisites
Requires either:
kustomizeCLI installed- Or
kubectlwith kustomize support (kubectl kustomize)