Emacs extension for controlling Kubernetes with limited permissions.
This is mostly pod management for now. More may come.
- switch context and namespace
- show pods
- get pod details
- tail container logs (possibly with
-f
follow flag) - copy pod name to clipboard
- copy container log command to clipboard
- port forward a pod to your localhost
Get it from Melpa, or copy and load the kubel.el
file.
To list the pods in your current context and namespace, call
M-x kubel
To set said namespace and context, respectively call
M-x kubel-set-namespace
M-x kubel-set-context
Note that namespace will autocomplete but not context, this is because I interact with kubernetes through a user who does not have permissions to list namespaces.
On the kubel screen, place your cursor on the pod
enter => get pod details
h => help popup
C => set context
n => set namespace
g => refresh pods
p => port forward pod
e => exec into pod
d => describe popup
l => log popup
c => copy popup
k => delete pod
j => jab deployment to force rolling update
By default, kubel log tails from the last 100 lintes, you can change the kubel-log-tail-n
variable to set another line number.
- Pods
- Deployments
- Services
- Config map
- Jobs
- Ingress
- HPA
- Endpoints
- Accounts
- Secrets
- Delete pods
- View logs
- Describe
- Edit
- Switch clusters
- Apply manifest
- exec
- logs for previous instance