Compare commits
2 Commits
c69e2c85dd
...
8947abc59d
Author | SHA1 | Date |
---|---|---|
Digital Studium | 8947abc59d | |
Digital Studium | 68860766c4 |
|
@ -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
1
kls
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue