:tada::tada::tada: Since 0.2.3 we have terminal UI.
Another watch tool with visualization view of delta change for kubernetes resources.
Docker should be preinstalled, more installation details please visit official website.
Download kubectl-watch script into your $PATH folder
bash
curl -SL# "https://github.com/imuxin/kubectl-watch/blob/master/script/kubectl-watch?raw=true" >> /usr/local/bin/kubectl-watch && chmod +x /usr/local/bin/kubectl-watch
bash
cargo install kubectl-watch --locked
```bash USAGE: kubectl-watch [OPTIONS] [ARGS]
ARGS:
OPTIONS:
-A, --all If present, list the requested object(s) across all namespaces
--export
| Keystroke | Description | | ------------------------ | ---------------------------------- | | char "j" or Down Arrow ↓ | go to next resource | | char "k" or Up Arrow ↑ | go to previous resource | | Enter ↵ | Only show selected resource events | | ESC | go back | | PageUP | scroll up diff content | | PageDown | scroll down diff content | | Home | reset scroll |
watch deploy in all namespace
bash
kubectl-watch deployment -A
watch deploy on some namespace
bash
kubectl-watch deployment -n {namespace}
export watched resources into local storage, just add --export "/to/your/path"
bash
kubectl-watch {resource} --export "/to/your/path"
managed-fields
will be excluded by default, add --include-managed-fields
can show the managed fields changes.
bash
kubectl-watch {resource} -include-managed-fields