Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Install k9s CLI: https://k9scli.io/topics/install/
k9s
?
# *ctrl+a*
# Select one of the resources that exist in the cluster
0
:pod # can press right arrow to finish
:pod production # Change `production` to whichever Namespace has some Pods
/toolkit # Change `toolkit` to a string that you would like to search for
d
esc
y
# *esc*
# *esc*
# select a Deployment
l
esc
:ctx
# select the current context
:ns
# select the Namespace has some resources
# *ctrl+d*
# Select *OK*
# *ctrl+z*
:ns
# select *all+*
# *ctrl+w
:q
# `vim`?
cat $HOME/.k9s/config.yml
cat $HOME/.k9s/hotkey.yml
cat $HOME/.k9s/alias.yml
# Install [krew](https://krew.sigs.k8s.io/docs/user-guide/setup/install/)
# Install [ketall](https://github.com/corneliusweig/ketall/)
echo 'plugin:
get-all:
shortCut: g
confirm: false
description: get-all
scopes:
- all
command: sh
background: false
args:
- -c
- "kubectl get-all -n $NAMESPACE | less"' \
| tee ~/.k9s/plugin.yml
cat ~/.k9s/plugin.yml
k9s
g
:q
:q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.