A Livebook Kino for learning to use the k8s Elixir library.
Install the latest 1.x version:
Mix.install([{:kino_k8s, "~> 1.0"}])
To install the latest from main
branch:
Mix.install([{:kino_k8s, github: "mruoss/kino_k8s"}])
kino_k8s
brings the following Smart Cells to your Livebook:
- Cluster Connection - Connect to a Kubernetes Cluster
- Get / List / Watch Resources
- Create / Update / Apply Resource - Modify resources in your cluster
- Connect to Pod (Exec/Logs) - Renders a terminal using xterm.js (Formerly
kino_k8s_term
).
The smart cells require a connection to a Kubernetes Cluster in form of a
%K8s.Conn{}
object. To add such a connection to your Livebook, you can add
the Cluster Connection
smart cell before adding any other smart cells.
cd assets
npm install
npm run dev
mix escript.install hex livebook
livebook server ./dev.livemd
cd assets
npm install
npm run build