Skip to content

Instantly share code, notes, and snippets.

@witsch
Last active March 23, 2024 17:41
Show Gist options
  • Save witsch/f667845a59b973e8880d4ed54f70139a to your computer and use it in GitHub Desktop.
Save witsch/f667845a59b973e8880d4ed54f70139a to your computer and use it in GitHub Desktop.
start debugger pod from `k9s`
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"
@witsch
Copy link
Author

witsch commented Mar 23, 2024

needs to go into ~/Library/Application Support/k9s/plugins.yaml, see k9s docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment