Last active
March 23, 2024 17:41
-
-
Save witsch/f667845a59b973e8880d4ed54f70139a to your computer and use it in GitHub Desktop.
start debugger pod from `k9s`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins: | |
debug: | |
shortCut: Shift-D | |
description: kubectl debug | |
scopes: | |
- pods | |
command: bash | |
background: false | |
args: | |
- -c | |
- "kubectl debug $NAME --context $CONTEXT --namespace $NAMESPACE --tty --stdin --copy-to debug-$NAME --container $( kubectl get pod $NAME --context $CONTEXT --namespace $NAMESPACE --output jsonpath --template {.spec.containers[0].name} ) -- bash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
needs to go into
~/Library/Application Support/k9s/plugins.yaml
, see k9s docs