k9s
k9s copied to clipboard
Question: Ability to create new resources
First off, thanks for this awesome tool, I've been using it for all my k8s related activities recently and it saves me so much time. Debugging a complex issue on GKE due to a bug was made MUCH easier by the ability to quickly jump between different resources, look at logs and shell into containers etc 😄
I've tried looking in the docs, issues list and the UI to see if I could see a way to create a new resource but I haven't found anything. Is it possible at the moment? I'd be happy with something akin to edit mode, ie. just opening an editor to dump a manifest in, but it would be really cool if it was context aware and could provide a template based on the current resource screen you were on.
I think this is covered by https://github.com/derailed/k9s/pull/954?
I currently use this plugin as a workaround to quickly apply manifests from within k9s:
plugins:
apply:
shortCut: Shift-E
confirm: false
background: false
description: "Apply From Editor"
scopes:
- all
command: bash
args:
- -c
- "echo '' > /tmp/k9s-apply.yaml && vim /tmp/k9s-apply.yaml && cat /tmp/k9s-apply.yaml | kubectl --context $CONTEXT -n $NAMESPACE apply -f - | less"