-
Notifications
You must be signed in to change notification settings - Fork 10
/
plugin.yml
50 lines (50 loc) · 1.25 KB
/
plugin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
plugin:
# Defines a plugin to provide a `ctrl-d` shortcut to kill the selected container in a pod.
kill:
# Define a mnemonic to invoke the plugin
shortCut: Ctrl-D
# What will be shown on the K9s menu
description: Kill
# Collections of views that support this shortcut. (You can use `all`)
scopes:
- containers
# The command to run upon invocation. Can use Krew plugins here too!
command: kubectl
# Whether or not to run the command in background mode
background: false
# Defines the command arguments
args:
- --context
- $CONTEXT
- -n
- $NAMESPACE
- exec
- -it
- $POD
- -c
- $NAME
- --
- /bin/sh
- -c
- "kill -SIGINT 1"
logs:
# Define a mnemonic to invoke the plugin
shortCut: Ctrl-L
# What will be shown on the K9s menu
description: Pod logs
# Collections of views that support this shortcut. (You can use `all`)
scopes:
- po
# The command to run upon invocation. Can use Krew plugins here too!
command: kubectl
# Whether or not to run the command in background mode
background: false
# Defines the command arguments
args:
- logs
- -f
- $NAME
- -n
- $NAMESPACE
- --context
- $CONTEXT