All Tools View Categories About Contact Privacy

Kustomize Output Previewer / Flattener

Flatten a kustomization.yaml (namePrefix, namespace, commonLabels, commonAnnotations) into one YAML.

Runs entirely in your browser - nothing is uploaded and no cluster connection is made.
0
resources
Your flattened YAML will appear here.

About Kustomize Output Previewer / Flattener

kustomize build resolves a kustomization into flat manifests, but you need the CLI and the files on disk. The Kustomize Output Previewer / Flattener does the common transforms in the browser: paste your kustomization.yaml and the resource manifests, and it applies namePrefix, namespace, commonLabels and commonAnnotations, then shows the flattened multi-document result.

Toggle each transform, and the tool merges commonLabels into metadata.labels, selector matchLabels and pod-template labels (with common labels winning on conflict), sets the namespace, and prefixes resource names. Bases, patches and generators are intentionally not resolved - this is a preview of the straightforward transforms.

Everything runs locally and nothing is uploaded.

Features

  • namePrefix - prepended to metadata.name.
  • namespace - set on metadata.
  • commonLabels - merged into labels + matchLabels + template labels.
  • commonAnnotations - merged into metadata.annotations.
  • Flat output - one multi-document YAML.
  • Copy / Download / Print - get flattened.yaml wherever you need it.

How to Use

  1. Paste the kustomization.yaml.
  2. Paste the resources (multi-doc).
  3. Toggle transforms and flatten.

Examples

Example 1 - prefix. namePrefix dev- on myapp.

Example 2 - labels. env: dev merged into labels.

Example 3 - namespace. ns prod set.

Benefits

  • Preview - see flattened output instantly.
  • Transforms - the common ones applied.
  • Selective - toggle each transform.
  • No CLI - browser only.
  • Private - everything runs in the browser.
  • Copy, download or print - get the manifest where you need it.

Frequently Asked Questions

What does this flattener do?
It takes a kustomization.yaml plus the resources it references (pasted inline) and applies namePrefix, namespace, commonLabels and commonAnnotations, then emits a single flat multi-document YAML - the same idea as kustomize build, without a cluster.
Why paste resources inline?
There is no filesystem here, so instead of listing resource filenames you paste the resource manifests in the resources box; they are flattened in order.
Which transforms are applied?
namePrefix is prepended to metadata.name; namespace is set on metadata; commonLabels and commonAnnotations are merged into metadata (and matchLabels/template labels).
Does it resolve bases or patches?
No. This is a lightweight preview that applies the common transforms; bases, patches and configMapGenerators are not resolved.
Does this connect to a cluster?
No. Everything is assembled in your browser and nothing is uploaded.
Can I download it?
Yes. Copy the flattened YAML, download flattened.yaml, or print it.