diff
Diff file read from stdin
Diff configurations specified by file name or stdin between the current online configuration, and the configuration as it would be if applied.
KUBECTL_EXTERNAL_DIFF environment variable can be used to select your own diff command. Users can use external commands with params too, example: KUBECTL_EXTERNAL_DIFF=”colordiff -N -u”
By default, the “diff” command available in your path will be run with the “-u” (unified diff) and “-N” (treat absent files as empty) options.
Note: KUBECTL_EXTERNAL_DIFF, if used, is expected to follow that convention.
$ kubectl diff -f FILENAME