https://github.com/bulivlad/kubetail
https://github.com/bulivlad/kubetail
grep kubectl kubernetes kubernetes-cluster kubetail pods
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bulivlad/kubetail
- Owner: bulivlad
- Created: 2020-05-22T10:20:15.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T13:00:25.000Z (almost 5 years ago)
- Last Synced: 2025-01-29T14:45:47.519Z (3 months ago)
- Topics: grep, kubectl, kubernetes, kubernetes-cluster, kubetail, pods
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kubetail
Utility bash script that enables you to follow and grep logs from multiple k8s pods in one stream. It also ships with autocompletion feature which list all available pods in current k8s context that you can use.## Instalation
Download the [kubetail](https://raw.githubusercontent.com/bulivlad/kubetail/master/kubetail) script and it's ready to use. For auto completion feature you will also need to download and source completion [script](https://github.com/bulivlad/kubetail/tree/master/completion).
Another way is to clone the github repository and use the script.## Completion
Completion is only available for suggesting arguments (--pods --tail --label --grep) and for values for --pods argument
### If you are using bash as main shell run
* cd into completion folder
* run
```
source ./kubetail.bash
```
* cd into root folder and run
```
install ./kubetail /usr/local/bin/kubetail
```### If you are using zsh as main shell run
* cd into completion folder
* run
```
autoload bashcompinit
bashcompinit
source ./kubetail.bash
```
* cd into root folder and run
```
install ./kubetail /usr/local/bin/kubetail
```## Usage
* To follow logs by pods name
```
kubetail --pods
```* To follow logs by pods labels
```
kubetail --label ''
```* To follow logs and grep for info
```
kubetail [--pods ] [--label ''] --grep
```* To follow logs with specified tail
```
kubetail [--pods ] [--label ''] --tail
```*NOTE:* when supplying both --pods and --label arguments, only --pods will be considered
### Contributing
* Pull requests are welcome.
* PRs should target the `master` branch.### Author
Vlad Bulimac ([email protected])