DevOps Generators

K8s Resource Diff

All tools

Put the old and new manifest side by side and see which lines changed.

How it works

Four simple steps

1

Paste version A

Add the original or Git copy of the manifest on the left.

2

Paste version B

Add the edited or live version on the right.

3

Run the comparison

Press Run to compare the two files line by line.

4

Read the markers

Minus lines exist only in A, plus lines only in B.

K8s Resource Diff

About K8s Resource Diff

A teammate edited a Deployment directly in the cluster, and now the copy in Git no longer matches what is running. Export both versions, paste them into the two boxes, and check what drifted before you overwrite anything.

Paste the original into Manifest A and the new version into Manifest B, then press Run. Matching lines are kept with two leading spaces, lines only in A get a minus, and lines only in B get a plus. The comparison is positional: line 12 of A is checked against line 12 of B.

That makes it quick for edits that keep the shape of the file, such as a bumped image tag, a new replica count or a changed env value. It is less helpful when a line is inserted near the top, because everything after it shifts and shows as changed. In that case normalize both files first (sort keys with the YAML key sorter) or switch to the general text diff checker, which aligns insertions. Output from kubectl get -o yaml also carries status and managedFields blocks, so trim those before comparing.

Both manifests are compared inside this browser tab. For other structured config, YAML Diff is another option.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

The diff compares line positions, not blocks of content. One inserted or removed line near the top shifts everything below it. Sort or normalize both files the same way, or use a diff that aligns insertions.

No. It treats both manifests as plain text. A field the API server filled in with a default shows as a difference even though the effective spec is the same.

Yes. Lines must match exactly, so a trailing space or a switch from two-space to four-space indentation is reported as a change.

View more FAQs

Related tools

View all

Kubernetes Manifest Studio

Generate Deployment, Service, and Ingress YAML with a drift checklist.

Open

K8s Inspector

Summarize Kubernetes YAML kinds, names, and labels.

Open

K8s Manifest Splitter

Split multi-document YAML into one file per resource.

Open

K8s to Helm

Scaffold a Helm chart folder layout from pasted manifests.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools