Compare commits

...

2 Commits

Author SHA1 Message Date
Digital Studium 8947abc59d Remove rnd files 2024-04-24 20:41:26 +03:00
Digital Studium 68860766c4 Add debug key binding 2024-04-24 20:40:49 +03:00
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ It is lightweight and easy to customize
- `3` - edit resource
- `4` - logs of pod
- `5` - exec to pod
- `6` - network debug of pod (with nicolaka/netshoot container attached)
- `delete` - delete resource
You can customize these bindings or add extra bindings in `KEY_BINDINGS` variable of `kls` (in a row #6).

1
kls
View File

@ -7,6 +7,7 @@ KEY_BINDINGS = { # can be extended
"3": 'kubectl -n {namespace} edit {api_resource} {resource}',
"4": 'kubectl -n {namespace} logs {resource} | batcat -l log --paging always --style numbers',
"5": 'kubectl -n {namespace} exec -it {resource} sh',
"6": 'kubectl -n {namespace} debug {resource} -it --image=nicolaka/netshoot',
"KEY_DC": 'kubectl -n {namespace} delete {api_resource} {resource}' # KEY_DC is the delete key
}
# which api resources are on the top of menu?