Another watch tool with visualization view of delta change for kubernetes resources.
overview of using delta diff tool | overview of using difftastic diff tool
:--------------------------------------------------:|:--------------------------------------------------:
|
bash
cargo install kubectl-watch --locked
Docker should be preinstalled, more installation details please visit official website.
copy the kubectl-watch script into your $PATH folder
bash
cp script/kubectl-watch /usr/local/bin/
chmod +x /usr/local/bin/kubectl-watch
watch deploy in all namespace
bash
kubectl-watch {resource-name} -A
watch deploy on some namespace
bash
kubectl-watch {resource-name} -n {namespace}
watch without delta view, just add --skip-delta
arg.
bash
kubectl-watch {resource-name} -n {namespace} --delta
watch with delta view by using difftastic
tool, just add --diff-tool difft
kubectl watch {resource-name} -n {namespace} --diff-tool difft
run kubectl-watch -h
to get help msg.
```bash
kubectl-watch
USAGE: kubectl-watch [OPTIONS] [ARGS]
ARGS:
OPTIONS:
-A, --all If present, list the requested object(s) across all namespaces
--diff-tool