Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lee0c/kubectl-watch
Watches Kubernetes resources
https://github.com/lee0c/kubectl-watch
k8s kubectl kubectl-plugin kubectl-plugins kubernetes utility
Last synced: 3 months ago
JSON representation
Watches Kubernetes resources
- Host: GitHub
- URL: https://github.com/lee0c/kubectl-watch
- Owner: lee0c
- Created: 2019-05-18T16:26:49.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-08-21T05:57:47.000Z (over 1 year ago)
- Last Synced: 2024-08-02T06:13:46.534Z (6 months ago)
- Topics: k8s, kubectl, kubectl-plugin, kubectl-plugins, kubernetes, utility
- Language: Shell
- Size: 137 KB
- Stars: 18
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-kubectl-plugins - kubectl-watch - watch)](https://github.com/lee0c/kubectl-watch/stargazers) | (kubectl Plugins / Installing plugins via awesome-kubectl-plugins)
README
# kubectl-watch :eyes:
[Kubernetes CLI plugin](https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/) for better resource watching output.
![GIF of the plugin in use, showing information about the pods of a Prometheus deployment updating on the console](./kubectl-watch.gif)
## Installation
```bash
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.
## Use
`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. |## Notes
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 :bug:](https://github.com/lee0c/kubectl-watch/issues)