Tool for managing kubernetes cluster resources. Inspired by lf and ranger file managers
Go to file
Digital Studium 981503e153 Add unit tests 2024-05-04 13:15:37 +03:00
images Change image 2024-04-19 09:15:13 +03:00
.gitignore Add unit tests 2024-05-04 13:15:37 +03:00
LICENSE Add license 2024-04-07 22:56:19 +03:00
README.md fix sonarlint alerts 2024-05-03 22:57:28 +03:00
kls Add unit tests 2024-05-04 13:15:37 +03:00
test.py Add unit tests 2024-05-04 13:15:37 +03:00

README.md

KLS

Description

kls is a cli tool based on kubectl for managing kubernetes cluster resources. Inspired by lf and ranger file managers, written in python. It is lightweight (~250 lines of code) and easy to customize. Supports mouse navigation as well as keyboard navigation.

Key bindings

For kubectl (You can customize these bindings or add extra bindings in KEY_BINDINGS variable of kls in a row #4):

  • 1 or Enter - get yaml of resource
  • 2 - describe resource
  • 3 - edit resource
  • 4 - logs of pod
  • 5 - exec to pod
  • 6 - network debug of pod (with nicolaka/netshoot container attached)
  • delete - delete resource

Other:

  • Escape - exit filter mode or kls itself
  • TAB, arrow keys - navigation

kls in action

Dependencies

  • python3
  • kubectl
  • batcat

Installation

Download latest kls:

curl -O "https://git.digitalstudium.com/digitalstudium/kls/raw/branch/main/kls"

Then install it:

sudo install ./kls /usr/local/bin/