8000 GitHub - t-young31/kl: Fast access to k8 pod logs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

t-young31/kl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kl

Shortcut for running kubectl logs <pod-name> -n <namespace> -f. The pod name and namespace are filled in with best guesses given a pattern. For example, instead of running

kubectl get pods -A
# NAMESPACE     NAME                           READY   STATUS   ...  AGE
# kube-system   coredns-597584b69b-fzxgt       1/1     Running  ...  13m
kubectl logs coredns-597584b69b-fzxgt -n kube-system -f
# ... the logs ...

use

kl coredns

⚙️ Install

pip install git+https://github.com/t-young31/kl

🚀 Usage

kl <pod-pattern>

Run kl --help for options

🏗️ Development

Contributions are very welcome! Suggested steps:

  • Fork this repository and create a branch
  • Run pip install -e .[dev] && pre-commit install to install the dev deps and pre-commit
  • Modify, commit, push and open a pull request against main for review

About

Fast access to k8 pod logs

Resources

License

Stars

Watchers

Forks

Languages

0