Interactive kubernetes operator like a peco and Emacs helm.
$ brew tap takaishi/homebrew-fomulas
$ brew install kelm
$ kelm
You can write custom action to ~/.kelm
.
For example:
---
actions:
pods:
- name: "log"
command: "kubectl -n {{ .Namespace }} log {{ .Obj.metadata.name }}"
nodes:
- name: "ssh"
variables:
- name: address
jsonpath: '{.status.addresses[?(@.type=="InternalIP")].address}'
command: 'ssh {{ .address }}'