Kubernetes Resource Diff
Compare Kubernetes YAML manifests and identify added, removed, and modified resources and configuration fields between two versions.
Compare Kubernetes Manifests
Compare two Kubernetes YAML manifests and identify added, removed, and changed resources with exact value transitions.
Diff Summary
Resource-level changes between the two manifests.
Resource Changes
Detailed comparison for each Kubernetes resource.
spec.replicas2
5
spec.template.spec.containers[0].imagenginx:1.25
nginx:1.27
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"name": "nginx",
"namespace": "default"
},
"spec": {
"replicas": 2,
"selector": {
"matchLabels": {
"app": "nginx"
}
},
"template": {
"metadata": {
"labels": {
"app": "nginx"
}
},
"spec": {
"containers": [
{
"name": "nginx",
"image": "nginx:1.25",
"ports": [
{
"containerPort": 80
}
]
}
]
}
}
}
}{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"name": "nginx",
"namespace": "default"
},
"spec": {
"replicas": 5,
"selector": {
"matchLabels": {
"app": "nginx"
}
},
"template": {
"metadata": {
"labels": {
"app": "nginx"
}
},
"spec": {
"containers": [
{
"name": "nginx",
"image": "nginx:1.27",
"ports": [
{
"containerPort": 80
}
]
}
]
}
}
}
}How resource matching works
Resources are matched using their Kubernetes kind, namespace, and metadata name.
For example, Deployment/default/nginx represents the Deployment named nginx in the default namespace.
Field changes show both the previous and new values, making changes such as spec.replicas: 2 → 5 immediately visible.
YAML parsing errors display the exact line and column when available, and the corresponding line number is highlighted in the editor.
The comparison is performed locally in your browser. The YAML is not sent to a backend by this tool.