Kubernetes CLI plugin for better resource watching output.
git clone https://github.com/lee0c/kubectl-watch.git
cd kubectl-watch
chmod +x kubectl-watch
ln -s /path/to/kubectl-watch/kubectl-watch /usr/local/bin/kubectl-watch
You can then run kubectl plugin list
to confirm that this is available as a kubectl plugin, and use kubectl watch ---
as a kubectl command.
kubectl watch
will take any arguments kubectl get
takes. It additionally adds a few options which must be specified before any standard kubectl arguments. Arguments that require values are shown with their default value.
Options | |
---|---|
-c, --calls 60 | Make 60 calls before exiting (pass 0 to disable progress bar/exiting) |
-s, --sleep 1 | Sleep for the specified number of seconds between calls |
-h, --help | Displays help text. |
--simple | Force use of non-UTF-8 progress bar chars on a terminal with UTF-8 support. |
By default, this uses UTF-8 characters in the progress bar. It should switch to standard ANSI characters if your terminal doesn't support UTF-8, but if you're having issues with it try using the --simple
flag - and put in a 🐛