Coder Social home page Coder Social logo

kubel's Introduction

MELPA

kubel

Emacs extension for controlling Kubernetes with limited permissions.

Features

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
  • describe and live edit a resource (deployment,service,job,ingress,configmap)
  • show rollout history for a resource
  • highlight a pod by name
  • exec into a pod using tramp

Installation

Get it from Melpa, or copy and load the kubel.el file.

If you want to have the evil compatibility package, get it from Melpa as well or load the kubel-evil.el file.

Usage

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.

Shortcuts

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
f => set a substring filter for pod name
r => see the rollout history for resource

Editing a resource

After describing a resource in YAML format, you can edit the buffer and hit C-c C-c to apply your changes.

For example, if you want to edit a deployment, you can hit the key sequence d -y d, then select your deployment, edit the buffer, and hit C-c C-c to apply.

Customize

By default, kubel log tails from the last 100 lines, you can change the kubel-log-tail-n variable to set another line number.

TODO

  • HPA
  • Endpoints
  • Accounts
  • Secrets
  • logs for previous instance
  • logs for multiple pods
  • top po command + sort by usage
  • rollback

kubel's People

Contributors

abrochard avatar snowiow avatar leifwar avatar maplemuse avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.