Skip to content

Commit

Permalink
doc: k9s
Browse files Browse the repository at this point in the history
  • Loading branch information
bomgar committed Dec 27, 2023
1 parent 93c1abc commit 40b93d8
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,54 @@ You can map additional level values (used for output and color):
# these values for example are used by https://www.npmjs.com/package/bunyan#levels
```


## k9s

In the file `~/.config/k9s/plugin.yml` add this:

```yaml
plugin:
fblog-pod:
shortCut: Shift-L
confirm: false
description: "fblog"
scopes:
- pods
command: sh
background: false
args:
- -c
- "kubectl logs --follow -n $NAMESPACE $NAME | fblog"
fblog-container:
shortCut: Shift-L
confirm: false
description: "fblog"
scopes:
- containers
command: sh
background: false
args:
- -c
- "kubectl logs --follow -n $NAMESPACE $POD -c $NAME | fblog"
fblog-pod-all:
shortCut: Shift-A
confirm: false
description: "fblog -d"
scopes:
- pods
command: sh
background: false
args:
- -c
- "kubectl logs --follow -n $NAMESPACE $NAME | fblog -d"
fblog-container-all:
shortCut: Shift-A
confirm: false
description: "fblog -d"
scopes:
- containers
command: sh
background: false
args:
- -c
- "kubectl logs --follow -n $NAMESPACE $POD -c $NAME | fblog -d"
```

0 comments on commit 40b93d8

Please sign in to comment.