---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubectl diff

> Check differences between live resources and files.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_diff/>.

- View differences between the live resource and file definition:

`kubectl diff {{[-f|--filename]}} {{path/to/filename}}`
