Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including kubelive with all npm packages installed. Try it out:

var kubelive = require("kubelive")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

kubelive v1.5.0

Kubernetes command line tool to provide live data about the cluster and it's resources

Kubelive

CircleCI codecov prettier jest semantic-release

kubectl tool reinvented to be more reactive and interactive

Demo

Motivation

I felt that the output from kubectl get pod -w is very cluttered and it is a pain in my ass to understand which pod is running, which pod is exactly terminating so I built kubelive which updates the status of the pods in realtime without cluttering the terminal

Requirements

  • node v10 or higher

Installation

npm install -g kubelive

Available commands

  • List the pods in the cluster
kubelive get pods
  • List the services in the cluster
kubelive get services
  • List the replication controllers in the cluster
kubelive get replicationcontrollers
  • List the nodes in the cluster
kubelive get nodes
  • List resources from a different context
kubelive get <resource> --context <name>
  • List the pods in the cluster in a jiffy
kubelive
  • Get help on all available commands
kubelive help
  • Get the current kubelive version
kubelive --version

Kubelive also supports short names for resources similar to kubectl, the below command will list services

kubectl get svc

Actions

  • You can use the :arrow_left: and :arrow_right: keys to switch between available namespaces

  • You can use the :arrow_up: and :arrow_down: keys to select a pod

  • You can press the D key to delete the selected pod

  • You can press the C key to copy the name of the selected pod

  • You can press the Q key to quit the app

What others say

twitter-2 twitter-1

Roadmap

  • [x] Add support for pods
  • [x] Add support por nodes, services, replication controllers
  • [ ] Add support for ingress, deployments, replica sets
  • [ ] Show live logs from pods
  • [ ] Shell into a running pod
  • [ ] Add support for filter by name flag
  • [ ] Add support for refresh rate flag

Show your support by :star: the repo

License

MIT © Ameer Jhan

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free