yet another pods log tailer for kubernetes
kt is short for Kubernetes Tail. It behaves like kubect logs -f
and
its usage is similar to kubectl get
.
NOTE: If you install
kt
using homebrew, the completion is already installed.
Load the completion code into current shell
## bash
$ source <(kt --completion bash)
## zsh
$ source <(kt --completion zsh)
$ kt foo
or
$ kt 'foo-\w+'
$ kt -n prod -lapp=foo
Currently only the following resources are supported:
$ kt hpa foo
# You could limit which containers are tailed using regexp
$ kt -c 'sidecar-\w' svc foo
$ kt -n test --tail 30 deploy foo
$ kt --timestamps sts foo
$ kt --context prod ds foo
$ kt --cluster dev job foo
Using Homebrew:
$ brew tap knight42/tap
$ brew install knight42/tap/kt
Or download from the release page.