# Diff resources included in "pod.json".

kubectl diff -f pod.json



# Diff file read from stdin.

cat service.yaml | kubectl diff -f -