2024-04-07 19:34:56 +00:00
|
|
|
# KLS
|
2024-04-24 03:56:29 +00:00
|
|
|
|
2024-04-07 19:34:56 +00:00
|
|
|
## Description
|
2024-04-21 06:50:27 +00:00
|
|
|
`kls` is a cli tool for managing kubernetes cluster resources. Inspired by `lf` and `ranger` file managers.
|
|
|
|
It is lightweight and easy to customize
|
2024-04-24 03:56:29 +00:00
|
|
|
|
2024-04-21 06:50:27 +00:00
|
|
|
## Key bindings for kubectl
|
2024-04-14 15:14:04 +00:00
|
|
|
- `1` - get yaml of resource
|
|
|
|
- `2` - describe resource
|
|
|
|
- `3` - edit resource
|
|
|
|
- `4` - logs of pod
|
2024-04-23 18:16:34 +00:00
|
|
|
- `5` - exec to pod
|
2024-04-24 17:40:49 +00:00
|
|
|
- `6` - network debug of pod (with nicolaka/netshoot container attached)
|
2024-04-23 18:16:34 +00:00
|
|
|
- `delete` - delete resource
|
2024-04-21 06:50:27 +00:00
|
|
|
|
2024-04-24 05:28:19 +00:00
|
|
|
You can customize these bindings or add extra bindings in `KEY_BINDINGS` variable of `kls` (in a row #6).
|
2024-04-21 06:50:27 +00:00
|
|
|
|
2024-04-07 19:43:38 +00:00
|
|
|
![kls in action](./images/kls.gif)
|
2024-04-24 03:56:29 +00:00
|
|
|
|
2024-04-07 19:34:56 +00:00
|
|
|
## Dependencies
|
2024-04-07 20:08:00 +00:00
|
|
|
- `python3`
|
|
|
|
- `kubectl`
|
|
|
|
- `batcat`
|
2024-04-24 03:56:29 +00:00
|
|
|
|
2024-04-07 19:34:56 +00:00
|
|
|
## 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/
|
|
|
|
```
|
|
|
|
|