KinoK8sTerm - A Livebook Smart Cell rendering a terminal to connect to a Kubernetes Pod

kino_k8s is a Kino/Smart Cell using kubereq to perform operations on your Kubernetes Cluster. It even lets you connect into a running Pod and run a shell - using Xterm.js for rendering the web terminal.

7 Likes

I have just released kino_k8s onto hex.pm. It includes kino_k8s_term (that repo is now archived) and a few more smart cells to create, get, list, watch modify resources. The Kino aims to help people who want to start using the k8s library.

The smart cell which renders the terminal can now be used to open a shell but also to print logs of a running pod.

To try it out, just install the kino and start with the “Cluster Connection” Smart Cell:

Mix.install([{:kino_k8s, "~> 1.0"}])

Any feedback is welcome.

1 Like

Just published release 1.1.0 with nicer result rendering:

  • K8s.Conn is rendered as Kino.Tree
  • Resources are rendered as Kino.Markdown
  • Resource lists are rendered as Kino.Tree

Version 1.2.0 just went out.

  • Added support (i.e. fixed the UI) for for non-admin connections
  • Basic integration test using Playwright (I want to be able to automerge those JS dependency updates)