Docs / Comparing clusters
Comparing clusters
Diff a resource across clusters, compare whole namespaces, and check local manifests against what's running.
Compare a resource
Right-click a resource and choose Compare with…, or select two and choose Compare these 2, for a live side-by-side diff against the same object in another cluster or namespace.
Managed fields, status and server bookkeeping are hidden unless you turn them on. Secret values stay masked unless you choose to compare them.
Compare namespaces
Compare namespaces compares everything in two namespaces, in one cluster or two (staging against production, say), object by object:
- what exists on only one side;
- what differs, with the fields and any image change;
- what's the same.
Each has a side-by-side diff. Every namespaced kind people create is included, CRDs too. Objects a controller made, such as the Pods of a ReplicaSet or the Jobs of a CronJob, are left out because their owners are compared.
Status, server bookkeeping, owner UIDs, cluster-assigned addresses (Service cluster IPs, bound volume names) and per-cluster CA bundles are ignored. Secret values are compared by fingerprint and never shown.
Open it from the sidebar, or from a Namespace's actions menu.
Local manifests
Local manifests compares YAML on your computer with what runs in each chosen context:
- a folder of YAML;
- a Kustomize directory, built with your
kubectl kustomizeorkustomize build; - a Helm chart, rendered with your
helm template(values are passed through a private temporary file).
Only the fields a manifest sets count, as server-side apply would see them. Quantities are compared as numbers (500m is 0.5), and stringData is folded into data. Each object in each context is Same, Differs (with a diff), Missing or Error (a kind the cluster doesn't serve, or no access). API versions that the cluster's Kubernetes version, or the next two, remove are flagged.
Nothing is applied, not even as a dry run. Review and apply… on an object opens it in New resource for the usual dry run and diff.