Skip to content

The tmux plugin that displays the current Kubernetes information in your status bar

License

Notifications You must be signed in to change notification settings

mikejoh/tmux-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The TMUX Kubernetes status plugin

Note: Hi! This plugin is not actively maintained at the moment, please check this repository out if you're looking for a similar project: https://github.com/jonmosco/kube-tmux /Mikael

This tmux plugin displays your kubectl context status information in the status bar.

Example:

k8s status bar

From the official Kubernetes documentation:

A context element in a kubeconfig file is used to group access parameters under a convenient name. Each context has three parameters: cluster, namespace, and user. By default, the kubectl command-line tool uses parameters from the current context to communicate with the cluster.

Usage

Add #{k8s_status} to your status-left or status-right:

Example:

set -g status-right '#{k8s_status} %a %Y-%m-%d %H:%M'

The information in the status bar will be presented in the following way:

<context>:<cluster>:<namespace>(<number of pods>)

Installation via Tmux Plugin Manager

  1. Install Tmux Plugin Manager.
  2. Add this plugin to your ~/.tmux.conf:
set -g @plugin 'mikejoh/tmux-k8s'
  1. Press [prefix] + I to install.

Manual installation

  1. Create the tmux plugin directory and clone this repository:
mkdir -p ~/.tmux/plugins && git clone https://github.com/mikejoh/tmux-k8s.git ~/.tmux/plugins/tmux-k8s
  1. Press [prefix] + I to install.

Bonus

If you want to use my status bar setup in tmux, or basically use my tmux.conf as is, you can find more info here.

About

The tmux plugin that displays the current Kubernetes information in your status bar

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages