Skip to content

A kubectl plugin to display container logs within separate tmux panes

License

Notifications You must be signed in to change notification settings

brosandilabs/kubectl-tmux-logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kubectl-tmux-logs

About

Description

A kubectl plugin to display container logs within separate tmux panes

Installation

Add kubectl-tmux-logs to your kubectl plugins directory. For more information about how plugins are loaded, please see the official documentation.

git clone [email protected]:brosandilabs/kubectl-tmux-logs.git ~/.kube/plugins/kubectl-tmux-logs

Usage

> kubectl plugin tmux-logs --help
tmux-logs integrates kubectl logs with tmux by opening a new pane for each pod-container log

Options:
  -c, --container='': Container name (for pods with multiple containers)
  -l, --selector='': Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)

Usage:
  kubectl plugin tmux-logs [flags] [options]

Use "kubectl options" for a list of global command-line options (applies to all commands).

Examples

Get logs from all containers in the "my-namespace" namespace:

kubectl plugin tmux-logs -n my-namespace

Get logs from all containers in pods matching the "name=my-pod" selector in the "my-namespace" namespace:

kubectl plugin tmux-logs -l name=my-pod -n my-namespace

Get logs from a specific container in pods with "app=my-app" label:

kubectl plugin tmux-logs -l app=my-app -c some-container-name

About

A kubectl plugin to display container logs within separate tmux panes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages