Add Config
This commit is contained in:
parent
5e33cfeabf
commit
2b40e9ade7
7 changed files with 497 additions and 0 deletions
106
config/k9s/plugins.yaml
Normal file
106
config/k9s/plugins.yaml
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
plugins:
|
||||
cnpg-backup:
|
||||
shortCut: b
|
||||
description: Backup
|
||||
scopes:
|
||||
- cluster
|
||||
command: bash
|
||||
confirm: true
|
||||
background: false
|
||||
args:
|
||||
- -c
|
||||
- 'kubectl-cnpg backup $NAME -n $NAMESPACE --context "$CONTEXT" |& less -R'
|
||||
cnpg-hibernate-status:
|
||||
shortCut: h
|
||||
description: Hibernate status
|
||||
scopes:
|
||||
- cluster
|
||||
command: bash
|
||||
background: false
|
||||
args:
|
||||
- -c
|
||||
- 'kubectl-cnpg hibernate status $NAME -n $NAMESPACE --context "$CONTEXT" |& less -R'
|
||||
cnpg-hibernate:
|
||||
shortCut: Shift-H
|
||||
description: Hibernate
|
||||
confirm: true
|
||||
scopes:
|
||||
- cluster
|
||||
command: bash
|
||||
background: false
|
||||
args:
|
||||
- -c
|
||||
- 'kubectl-cnpg hibernate on $NAME -n $NAMESPACE --context "$CONTEXT" |& less -R'
|
||||
cnpg-hibernate-off:
|
||||
shortCut: Ctrl-H
|
||||
description: Wake up hibernated cluster in this namespace
|
||||
confirm: true
|
||||
scopes:
|
||||
- namespace
|
||||
command: bash
|
||||
background: false
|
||||
args:
|
||||
- -c
|
||||
- 'kubectl-cnpg hibernate off $NAME -n $NAME --context "$CONTEXT" |& less -R'
|
||||
cnpg-logs:
|
||||
shortCut: l
|
||||
description: Logs
|
||||
scopes:
|
||||
- cluster
|
||||
command: bash
|
||||
background: false
|
||||
args:
|
||||
- -c
|
||||
- "kubectl-cnpg logs cluster $NAME -f -n $NAMESPACE --context $CONTEXT"
|
||||
cnpg-psql:
|
||||
shortCut: p
|
||||
description: PSQL shell
|
||||
scopes:
|
||||
- cluster
|
||||
command: bash
|
||||
background: false
|
||||
args:
|
||||
- -c
|
||||
- "kubectl-cnpg psql $NAME -n $NAMESPACE --context $CONTEXT"
|
||||
cnpg-reload:
|
||||
shortCut: r
|
||||
description: Reload
|
||||
confirm: true
|
||||
scopes:
|
||||
- cluster
|
||||
command: bash
|
||||
background: false
|
||||
args:
|
||||
- -c
|
||||
- 'kubectl-cnpg reload $NAME -n $NAMESPACE --context "$CONTEXT" |& less -R'
|
||||
cnpg-restart:
|
||||
shortCut: Ctrl-R
|
||||
description: Restart
|
||||
confirm: true
|
||||
scopes:
|
||||
- cluster
|
||||
command: bash
|
||||
background: false
|
||||
args:
|
||||
- -c
|
||||
- 'kubectl-cnpg restart $NAME -n $NAMESPACE --context "$CONTEXT" |& less -R'
|
||||
cnpg-status:
|
||||
shortCut: s
|
||||
description: Status
|
||||
scopes:
|
||||
- cluster
|
||||
command: bash
|
||||
background: false
|
||||
args:
|
||||
- -c
|
||||
- 'kubectl-cnpg status $NAME -n $NAMESPACE --context "$CONTEXT" |& less -R'
|
||||
cnpg-status-verbose:
|
||||
shortCut: Ctrl-S
|
||||
description: Status (verbose)
|
||||
scopes:
|
||||
- cluster
|
||||
command: bash
|
||||
background: false
|
||||
args:
|
||||
- -c
|
||||
- 'kubectl-cnpg status $NAME -n $NAMESPACE --context "$CONTEXT" --verbose |& less -R'
|
||||
Loading…
Add table
Add a link
Reference in a new issue