- Install
kubectl-neat-diff
d="$(mktemp -d)" && git clone https://github.com/djosix/kubectl-neat-diff "$d" && cd "$d" && make install && cd - && rm -r "$d"
- Install
colordiff
sudo apt install colordiff
- Customize the diff command used by
kubectl diff
DIFF='colordiff -uN' KUBECTL_EXTERNAL_DIFF=kubectl-neat-diff kubectl diff -f XXX