Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yowainwright/k8s-web-logs-learning

k8s in-browser streaming demo using k8s, tilt, kind, next, shadcn, and xterm.js
https://github.com/yowainwright/k8s-web-logs-learning

k8s log-streaming nextjs shadcn-ui xterm-js

Last synced: 9 days ago
JSON representation

k8s in-browser streaming demo using k8s, tilt, kind, next, shadcn, and xterm.js

Awesome Lists containing this project

README

        

# K9s Web Logs Learning

This is a project to learn how to stream kubernetes logs to a web page. It works. Try it out!

---

## Try it out

- Copy `.env.example` as `.env.local` and follow the text instructions.
- Then, run \*`n i auto` and `pnpm i`.
- Finally, run `tilt up` to start the server.

> [!NOTE]
> *These commands assume you have `n` (or `nvm`) for node, `pnpm` for package management, and `kind` and `tilt` for Kubernetes installed.

> _Run `brew install n kind tilt ctlptrl` and `npm install pnpm -g` if not._

---

## About

This project is a learning project to understand/learn/explain how to stream logs from a Kubernetes cluster to a web page.

The project uses a simple [Next.js](https://nextjs.org/) app, [ShadCn](https://ui.shadcn.com/), and [Xterm.js](https://xtermjs.org/) to create a terminal-like experience in the browser.