Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created October 18, 2020 16:06
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save vfarcic/d04b27bf20be06ce0c7178311d205574 to your computer and use it in GitHub Desktop.
# 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