Skip to content
atgreenPublic

About

An experimental Kubernetes implementation in Common Lisp with an eBPF dataplane.

Resources

Contributing

Security policy

Stars

10 stars

Watchers

0 watching

Forks

Latest commit

 

History

2,325 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gr8s

CI License: Apache 2.0

Kubernetes-compatible clusters, built from scratch in Common Lisp — with an eBPF dataplane you can run on its own.

One executable is a complete Kubernetes-compatible cluster. gr8s puts a Kubernetes-compatible API server, controllers, scheduler, node agent, container runtime, networking, DNS, ingress, storage, metrics, a dashboard, and the datastore into a single native binary. Copy it to a Linux machine, run gr8s serve, and use kubectl and standard Kubernetes manifests. The same file scales out: run it as gr8s agent to add worker nodes, or as gr8s serve --join to add control-plane members for a highly available, Raft-replicated control plane.

Tip

Run AI agents on your machine. Keep control of what they can do. gr8 is a sandbox for coding agents built on gr8s. gr8 claude runs Claude Code natively in your project, with your terminal, tools and desktop, while the gr8s node on the same machine decides what it may write, which hosts it may reach, and keeps your real credentials out of its hands. No VM, no images to build. Install gr8, or read how it works.

Warning

This is an experiment. gr8s is for people interested in exploring and developing a new Kubernetes-compatible implementation. It does not promise compatibility, stability, or operational reliability. It may fail or behave incorrectly.

The project also explores building a Kubernetes-compatible implementation through human-guided AI development. It may never meet its goals. See Creation and development.

gr8s passed 100% of the upstream Kubernetes v1.37 conformance tests: 462/462, zero failures, in the recorded two-node Sonobuoy run on 2026-11-11. See the results and evidence, and the API coverage and known gaps for the current scope.

A web browser can be a worker node. Open a cluster's join page and the tab becomes a Kubernetes node: Pods run inside it, in Linux compiled to WebAssembly, with their own cluster IPs, reachable through Services and the cluster's Gateway. Nothing to install on the visitor's machine. See Browser nodes.

Start with the documentation guide. If you already know Kubernetes, the component map explains where familiar components live.

One binary, nothing else to install

A gr8s cluster has nothing else to install, version, or keep in step. The release binary carries its own statically linked container runtime and CNI plugins, so it needs no system containerd, runc, CNI plugin binaries, iptables, or add-on manifests. On the host it needs only a recent kernel, glibc 2.39 or later, and libzstd. Every node runs the same file, so there is no version skew between components.

You would normally deploy In gr8s
kube-apiserver, kube-controller-manager, kube-scheduler Built in
etcd Built-in durable datastore, replicated with Raft for high availability; gr8s backup / gr8s restore. Two-node HA takes miniwit, a tiny Go arbiter you can deploy anywhere, even on a home router
kubelet, containerd, runc, CNI plugins Built in; containerd, runc, and CNI plugins are embedded and started on demand
CNI, kube-proxy, NetworkPolicy controller Built-in eBPF dataplane, with VXLAN or WireGuard between nodes
CoreDNS Built-in node-local cluster DNS
Ingress controller, Gateway API implementation, LoadBalancer provider Built in
local-path provisioner, NFS volumes Built in; CSI drivers still work
metrics-server, cAdvisor Built in; kubectl top and Prometheus scrapes work
OpenTelemetry for ingress and network flows Built in: the Gateway traces every request it serves and joins your applications' traces; flow events ship as logs, both over OTLP
Kubernetes dashboard Built-in Headlamp and a live network map: gr8s dashboard
Certificate management Automatic leaf renewal, staged CA rotation, one-time join tokens
bpftrace, debug tooling gr8s debug trace and a live Lisp REPL into any node
Registry mirror, peer-to-peer image distribution (Dragonfly, Kraken, Spegel) Built-in BitTorrent v2: nodes share image layers with each other instead of each pulling from the registry

The same file takes every role:

gr8s serve              # control plane plus a local node: a complete cluster
gr8s serve --join       # another control-plane member, for high availability
gr8s agent              # a worker node joining that cluster
gr8s net-agent          # just the eBPF dataplane, on a Kubernetes cluster you already run

For two-node high availability, the tie-breaking third vote is miniwit, a tiny Go program you can deploy almost anywhere: a small VM, a Raspberry Pi, or even a home router.

Upgrading is replacing one file. The systemd installer verifies the new binary, restarts the service, and rolls back automatically if it does not become ready. Containers run with embedded containerd and runc; Kata Containers or gVisor are one command away (gr8s runtime install gvisor or gr8s runtime install kata), and virtual machines run with KubeVirt.

Getting started

To run a cluster, you need Linux 6.6+ with TCX eBPF support, root privileges, and working cgroups. Install kubectl to use the Kubernetes API. Start with a disposable Linux VM.

1. Install the binary from the latest release (amd64 or arm64):

VERSION=v1.37.2-gr8s.30 ARCH=amd64
curl -fLO https://github.com/atgreen/gr8s/releases/download/$VERSION/gr8s-linux-$ARCH
curl -fLO https://github.com/atgreen/gr8s/releases/download/$VERSION/gr8s-linux-$ARCH.sha256
sha256sum -c gr8s-linux-$ARCH.sha256
sudo install -m 0755 gr8s-linux-$ARCH /usr/local/bin/gr8s

2. Start a cluster and leave it running:

sudo gr8s serve

3. Use it. In another terminal, save a kubeconfig and deploy the example. The node needs registry access for the nginx and BusyBox images.

(umask 077; sudo gr8s kubeconfig > ~/gr8s.kubeconfig)
export KUBECONFIG=~/gr8s.kubeconfig

kubectl wait --for=condition=Ready node/gr8s-local --timeout=180s
kubectl apply -f https://raw.githubusercontent.com/atgreen/gr8s/main/examples/getting-started.yaml
kubectl -n gr8s-demo rollout status deployment/web --timeout=180s
kubectl -n gr8s-demo wait --for=condition=Ready pod/client --timeout=180s
kubectl -n gr8s-demo exec client -- wget -qO- http://web.gr8s-demo.svc.cluster.local

Expect an HTML response containing Welcome to nginx!. The full walkthrough checks DNS, performs a rolling restart, and explains common failures. Remove the example with kubectl delete namespace gr8s-demo. Stop the server with Ctrl-C; cluster state persists in root's ~/.local/state/gr8s for the next start (--state-directory picks another place).

gr8s serve exposes one authenticated HTTPS Kubernetes API on 0.0.0.0:6443; there is no unauthenticated localhost API. The kubeconfig embeds the cluster CA and an administrative client certificate, so keep it private.

To build the binary yourself instead, install SBCL and ocicl, plus Go for the runtime payload and podman or docker and cpio for the embedded dashboard, and run make native; see the build requirements. Every gr8s command works the same with build/gr8s.

See Building, running & testing to add worker nodes, use external containerd, or run tests. The runtime guide explains how to preload images.

For expiry inventory, leaf replacement, staged cluster-CA rotation, and ServiceAccount signer rotation, see Certificate management. Secrets encryption and key rotation are described in the ConfigMap and Secret API guide.

To manage a persistent server or agent with systemd, see Installing and operating gr8s with systemd. It covers verified upgrades, rollback, scoped cleanup, and uninstall.

For multi-member operation, recovery, automatic checkpoints and heap sizing, see High availability.

Why gr8s?

  • Nothing to assemble. One file is the whole cluster, on every node, at one version. Upgrading replaces that file, and the installer rolls back if the new one does not become ready.
  • Small clusters and slow links. Two control-plane nodes and a witness give high availability. The witness, miniwit, is small enough to put on whatever always-on box you have — the author's runs on a FreeBSD pfSense router. Nodes fetch image layers from each other over BitTorrent v2, so a rollout to many nodes normally costs the registry one download of each layer, and preloaded images cover airgapped nodes.
  • Workers the control plane never has to reach. Each agent opens one persistent, mutually authenticated connection to the control plane, and everything the control plane asks of that node travels over it. Workers can sit behind NAT, on a home network or in another cloud, with no port open to the control plane; see how it fits together.
  • A dataplane you can adopt piece by piece. The eBPF networking stack also runs on a cluster you already have, as a full CNI or just as a Gateway or kube-proxy replacement.
  • Debugging built into the cluster. gr8s doctor links causes to symptoms. gr8s debug trace sends programs written in a bpftrace-compatible language to the nodes that host selected Pods and attaches them in the agent process, with no bpftrace binary or tracing DaemonSet. An authenticated Slynk tunnel opens a live REPL into any control-plane or agent process; see debugging a running cluster. gr8s skill prints built-in operator and AI agent guidance that works offline.
  • A sandbox for AI agents and desktop apps. gr8 runs a command, claude or firefox, as if you had, but confined: it reaches only the hosts a policy names, sees every request audited, and never holds a real credential.
  • An independent implementation to study. The control plane and node agent are written from scratch rather than packaged from upstream Kubernetes. gr8s is an experiment in large systems programming in Common Lisp: concurrency, networking, storage, compilers, and distributed systems in one project. See For Common Lisp developers.

Use the gr8s dataplane with your own Kubernetes

The gr8s eBPF dataplane also installs as a standalone DaemonSet on a cluster you already run — no gr8s control plane required. On a k3s cluster with kube-proxy, flannel, and the built-in NetworkPolicy controller disabled, gr8s provides a complete eBPF networking stack:

  • Pod networking and IPAM over a VXLAN fabric (cross-node Pod-to-Pod), or an encrypted WireGuard fabric (overlay.backend=wireguard) that transparently encrypts Pod-to-Pod traffic while leaving node and API traffic in the clear.
  • Services — a kube-proxy replacement in the Whistler eBPF socket and packet load balancer.
  • NetworkPolicy enforced in eBPF, for TCP, UDP, and SCTP.
  • Gateway API — HTTPRoute routing, status, and LoadBalancer Services — and networking.k8s.io/v1 Ingress (IngressClass gr8s.io/ingress-controller) served by the same proxy. ListenerSets let teams attach HTTP/HTTPS listeners to a shared Gateway, including separate TLS certificates on the same port.
  • hostPort (in-kernel DNAT at the socket hook) and cluster DNS reachability.

Each piece is an independently selectable feature of the gr8s net-agent DaemonSet: run the full stack, or turn the CNI feature off and add just the Gateway or the kube-proxy replacement on top of the CNI you already run — they only need Pod IPs reachable from the host network, which most CNIs provide.

Everything is JIT-compiled from a Lisp eBPF DSL by Whistler, so the only host requirement is a recent kernel — there is no bundled iptables or nft binary to match. Run as the CNI on a two-node k3s cluster, the dataplane passes the upstream Kubernetes conformance tests for NetworkPolicy (TCP, UDP and SCTP), Gateway API (core HTTPRoute), and the sig-network suite covering Services (ClusterIP and NodePort), hostPort, DNS and EndpointSlices.

Install it with the Helm chart (point apiServer.host at an API server address nodes reach over the host network):

helm install gr8s-net deploy/chart/gr8s-net -n kube-system \
  --set apiServer.host=CONTROL_PLANE_IP

See deploy/ for the chart and conformance harness, and the foreign-cluster networking design for how it works.

gr8 — a sandbox for AI agents, built on gr8s

gr8 runs AI coding agents on your machine, under limits they can't change. gr8 claude starts Claude Code in your project as if you had typed claude, with your terminal, your tools, your source and your desktop. Each run is a Pod on this machine's gr8s node, and the node, not the agent, decides what it can do:

  • Files: it writes only the project, with a private home directory; git hooks and other files that would run code later are read-only to it.
  • Network: default deny, enforced in the kernel by gr8s's eBPF dataplane. Only the hostnames a policy allows resolve, and a rule can limit a host to the programs that may reach it.
  • Credentials: the agent holds stand-ins; the egress proxy puts the real token into requests to the host it belongs to, and nowhere else. Client certificates and SSH keys never enter the sandbox: the proxy presents them on the connection. Nor does a signing key: the node's agent signs the sandbox's git commits with it, and logs each signature.
  • Everything seen: each lookup, connection and HTTP request is a flow event, live on the gr8s dashboard or shipped over OpenTelemetry.

The gr8s dashboard's Network view for a gr8 sandbox: allowed connections to example.com, registry.npmjs.org and api.github.com, and a refused lookup of pastebin.com selected, with the explanation that no ClusterNetworkPolicy allows that name for this Pod, so nothing was sent; below, the flow table lists each lookup, connection and request and the program that made it.

Policies are ordinary Kubernetes objects, ClusterNetworkPolicies, Secrets and SandboxProfiles, so review, audit and administer them with the tools you already use. gr8 installs and starts gr8s for you; you never need to touch it.

$ sudo dnf install ./gr8*.rpm      # from the gr8 release, which carries gr8s too
$ cd ~/my-project
$ gr8 claude

gr8 has its own repository, with the documentation and releases.

Browser nodes — a tab is a worker node

gr8s serve --browser-listen HOST:PORT publishes a join page. Anyone who opens it turns that browser tab into a node of the cluster: no install, no root, no VPN, no container runtime, and no inbound firewall rule on their machine.

$ kubectl get nodes
NAME             STATUS   ROLES    AGE   VERSION
gr8s2            Ready    <none>   7d    v1.37.2-…
browser-b93021   Ready    <none>   2m    v1.37.2-…
  • The kubelet half stays home. The node's agent, lease, Pod sync, probes and status run in the gr8s server; the tab only runs containers. Each Pod is its own unkernel instance — Linux built as WebAssembly — so the node is arm64 whatever the visitor's CPU.
  • Real images. The server resolves a container's linux/arm64 image (private ones with the Pod's pull Secrets, which never reach the browser) and serves its layers; the tab unpacks them, keeps them in its private storage by digest, and runs the container in that root. kubectl logs and kubectl exec work.
  • Real networking. Each browser Pod gets an address in its node's Pod CIDR. Its packets ride the tab's WebSocket to the node hosting it, so Services, DNS, the Gateway and NetworkPolicy treat it like any other Pod.
  • Safe by construction. Browser nodes are tainted, so only Pods that tolerate them land there, and they refuse Pods that would bring Secrets, host paths or privileges. A tab proves a non-extractable key, so a reload is the same node; every frame it sends must come from an address the server gave it.
  • Tab to tab. Tabs reach each other's Pods over WebRTC, across NATs with the server's own STUN responder, and share image layers over the agents' BitTorrent protocol; whatever can't connect directly goes through the server.
  • Checked content. A tab's web page can be served to the world only after the server checks it, byte for byte, against the image it pulled.
  • GPUs. A tab with a WebGPU GPU offers gr8s.io/gpu, and a Pod that asks for it gets Vulkan on the visitor's GPU.
  • Visible. The join page shows the node, its Pods and the cluster, and each Pod's logs and console, read from the tab; /metrics reports every browser node's Pods, latency, traffic and memory.

Closing the tab removes the node, and its Pods are rescheduled; a server restart or upgrade brings tabs back on their own. See docs/browser-nodes.md to run them and docs/design-browser-nodes.md for the design.

Dashboard

gr8s dashboard opens a Kubernetes web UI in your browser, with five tabs. The Headlamp tab serves the Headlamp frontend and reverse-proxies the API over mutual TLS to the running cluster, with live resource updates. The Network tab draws the cluster's traffic from its flow events: a live map of workloads, Services, Gateways and the clients outside, with rates, drops, HTTP errors and latency, and the flows behind every edge. For each connection it says which NetworkPolicy rule allows it, or why it was dropped and the rule that would allow it. gr8s doctor's findings are drawn on the map. The Nodes tab lists the nodes, and Add node gives a command to paste as root on a new machine that installs the cluster's own release and joins it (details). The Agent tab runs AI coding agents you have installed (Claude Code, Codex or Gemini CLI), or a shell, each in a terminal tab of its own: + starts one, and closing its tab stops it. They run on your machine, with your own login, and with KUBECONFIG naming the dashboard's cluster, and with gr8s mcp registered for Claude Code and Codex; nothing is deployed to the cluster. The gear defines other agents: a name and a command line, in which {guide} or {guide-file} names the gr8s guide, {mcp-config} or {mcp-config-file} an MCP config for gr8s mcp, {kubeconfig} the kubeconfig and {gr8s} gr8s. They are kept in $XDG_CONFIG_HOME/gr8s/dashboard-agents.json. The REPL tab shows ICL's browser REPL connected to a running control-plane member or node agent, as gr8s debug icl connects it; it needs an ICL with --embed-origin on your PATH. All five are embedded in the binary, with no separate install.

gr8s dashboard    # uses $KUBECONFIG, or ~/.kube/config

The cluster's own apps can add tabs too. A cluster-scoped DashboardTab (deploy/crds/dashboardtabs.dashboard.gr8s.io.yaml) names a Service, and every dashboard shows it as a tab, reached through the cluster API's services/proxy:

apiVersion: dashboard.gr8s.io/v1
kind: DashboardTab
metadata: {name: grafana}
spec:
  title: Grafana
  service: {namespace: monitoring, name: grafana, port: 80}

A tab whose app shows traces can say where, with {traceId} in the path, and the Network tab's trace links open there; for Grafana with a Tempo data source:

  traces: '/explore?schemaVersion=1&orgId=1&panes=%7B%22t%22%3A%7B%22datasource%22%3A%22tempo%22%2C%22queries%22%3A%5B%7B%22refId%22%3A%22A%22%2C%22datasource%22%3A%7B%22type%22%3A%22tempo%22%2C%22uid%22%3A%22tempo%22%7D%2C%22queryType%22%3A%22traceql%22%2C%22query%22%3A%22{traceId}%22%7D%5D%7D%7D'

Creating one is an RBAC decision (create on dashboardtabs), since it reaches every reader. Each app tab is served from a loopback origin of its own, behind a per-tab secret, so an app's code can't reach the Headlamp proxy that acts with the reader's credentials.

The cluster's own MCP servers can join the Agent tab's agents too. A cluster-scoped DashboardMCPServer (deploy/crds/dashboardmcpservers.dashboard.gr8s.io.yaml) names a Service speaking MCP's streamable HTTP, and every agent the tab starts gets it beside gr8s mcp, reached through services/proxy as the reader:

apiVersion: dashboard.gr8s.io/v1
kind: DashboardMCPServer
metadata: {name: grafana}
spec:
  service: {namespace: monitoring, name: mcp-grafana, port: 8000}
  path: /mcp   # its MCP endpoint; /mcp by default

Each one is served on a loopback port of its own, under a secret path that only the agents' configuration holds. Claude Code and Codex get it on their command line, and your own agents get it through {mcp-config}. The agents act with the server's own credentials, so creating one (create on dashboardmcpservers) is an RBAC decision.

It serves on loopback http://127.0.0.1:8080 by default (change with --port) and launches your browser; --no-launch prints the URL instead. It prints only that URL; --verbose logs every request and server error. make native embeds the assets automatically; see dashboard assets.

MCP

gr8s mcp serves an AI agent what gr8s knows about a cluster as Model Context Protocol tools, on stdin and stdout, with the kubeconfig's credentials. Every tool only reads:

  • gr8s_guide: the guide gr8s skill prints, on how gr8s differs from other Kubernetes distributions and how to operate it. The server's instructions tell the agent to read it first.
  • doctor_diagnose: the gr8s doctor diagnose report, for the cluster, a namespace or one resource, as Markdown.
  • doctor_impact: what would stop working if a resource went away.
  • observe_flows: recent flow events, filtered by namespace, Pod, node or verdict.
  • cluster_status: the control plane's members and leader, and each node's readiness.
claude mcp add gr8s -- gr8s mcp --kubeconfig ~/.kube/config
codex mcp add gr8s -- gr8s mcp --kubeconfig ~/.kube/config

The dashboard's Agent tab registers it for the agents it starts, and gives Claude Code and Codex the guide in their context from the start.

Doctor

gr8s doctor diagnose reads any Kubernetes cluster, gr8s or not, and says what is wrong and why. It links the resources it reads — a workload to the Pods it owns, a Service to the Pods it selects, a Pod to its Node, Secrets, ConfigMaps and claims — so the report names causes instead of listing every symptom. A missing Secret is one problem, with the Pods and workloads it holds up listed beneath it.

gr8s doctor diagnose                               # the whole cluster
gr8s doctor diagnose -n production                 # one namespace
gr8s doctor diagnose deployment/web -n production  # one resource and what it depends on
gr8s doctor impact node/worker-1                   # what stops if this goes away

Problems are listed in the order to fix them. Each one shows the evidence behind it — conditions, recent Events, the last lines a crashed container wrote — and a suggested next step. diagnose only reads, and a cause is the deepest finding the doctor could see, not proof of a root cause.

On a gr8s cluster, gr8s doctor observe shows the drops the network makes and why, and diagnose counts a Pod's recent NetworkPolicy drops among its problems:

$ gr8s doctor observe -n shop --verdict dropped
02:23:51.128 gr8s-local: shop/cart:47022 -> shop/db:8080 TCP DROPPED by policy (shop/deny-egress)

gr8s dashboard's Network tab draws them as a live map with its flow table, and gr8s doctor observe --serve offers them as Hubble's Observer API, so the stock hubble CLI can read them; see flow events.

gr8s doctor impact KIND/NAME follows the same links the other way, before you drain a node or delete a Secret. gr8s doctor host checks the kernel, cgroups, firewall and state directory of a machine before it runs a node. See Doctor for output formats, exit codes, rules, coverage and limits.

Kubernetes capabilities

The implemented API surface includes:

Area Capabilities
Workloads Pods, Deployments, ReplicaSets, StatefulSets, DaemonSets, Jobs, ReplicationControllers, rolling updates, owner-reference garbage collection
Scheduling Resource requests and limits, node affinity and anti-affinity, taints and tolerations, priority and preemption, host ports, ephemeral-storage eviction
Configuration and identity ConfigMaps, Secrets, ServiceAccounts, bound tokens, RBAC, certificate issuance, admission webhooks, CEL admission policies
Networking ClusterIP, NodePort and LoadBalancer Services, EndpointSlices, NetworkPolicy, Gateway API, cluster DNS
Storage PersistentVolumes and Claims, StorageClasses, local-path provisioning, NFS, CSI drivers
Observability Metrics endpoints, Lisp heap/GC, Raft and filesystem metrics, cAdvisor and API server/scheduler series, resource metrics for kubectl top, OpenTelemetry: Gateway request traces and flow events as logs over OTLP
Extensibility Schema-backed custom resources, defaulting, pruning, validation, finalizers

Support varies by feature. This overview does not imply complete upstream semantics. See the Kubernetes API surface for supported operations, validation evidence, and limitations.

How it fits together

kubectl -> Kubernetes API -> controllers and scheduler -> desired state
                                                        |
                                 one persistent gRPC session per node,
                                       opened by the agent (mTLS)
                                                        |
                                                     agent
                                                   /       \
                                         CRI / containerd   networking
                                                |           /       \
                                               runc    routed veths   eBPF

gr8s serve runs the control plane and a local agent. Worker nodes run gr8s agent. The control plane schedules work and publishes the desired state. Agents reconcile containers and networking, then report their status. By default, each agent manages its own containerd instance.

Agents connect to the control plane; the control plane never connects to an agent. Each agent opens one persistent gRPC stream over mutual TLS when it starts, and reopens it if it drops. Everything the control plane sends that node travels over that stream:

  • desired state and node configuration;
  • kubectl exec, attach, logs, cp and port-forward;
  • calls the API server makes into Pods: admission and conversion webhooks, aggregated APIs such as metrics-server, and the pods/proxy, services/proxy and nodes/proxy subresources;
  • metrics, volume cleanup, gr8s debug trace and the Slynk debugger.

So a worker opens no port to the control plane, and it doesn't have to be reachable from it: it can sit behind NAT or a firewall, on a home network, or in another cloud. The control plane listens on TCP 6443 for the API and 7443 for agents. A standard Kubernetes cluster needs the konnectivity proxy for this; in gr8s it is how the node protocol works. See a control plane in another network.

Pod traffic between nodes still crosses the overlay, so nodes must be able to send to each other: over VXLAN, or over WireGuard, which can traverse NAT and relay.

For a replicated control plane, Raft supports three voting members or two members and a witness. A quorum can continue after a leader fails. A single-node cluster needs no Raft configuration. See High availability for membership and durability guarantees. See Design for component boundaries.

miniwit — a tiny third Raft vote

miniwit is a tiny Go program with minimal memory, CPU, and storage needs. You run two full gr8s master nodes plus miniwit as the third Raft-cluster participant: it provides the deciding vote for leader election and split-brain scenarios without running the API, controllers or workloads. It stores the Raft log sealed, so it can read who the members are and nothing else, and it holds no cluster state. It never campaigns on its own. When a leader fails and the surviving master is an entry or two behind the witness, the witness leads for a moment, only to give that master the entries it lacks and hand leadership to it; it commits nothing itself.

miniwit is a self-contained Go module (its own go.mod, independent of the Lisp build) that speaks gr8s's RaftTransport gRPC/mTLS protocol — enroll, join, follow. It is pure Go, so it cross-compiles to a single static binary for any platform Go targets: Linux, the BSDs, macOS, Windows, on amd64, arm64 and more. That gives you a wide choice of where to put the third vote: a small cloud VM, a Raspberry Pi, or even a home router (the author runs it on a FreeBSD pfSense router). See miniwit/README.md for the protocol, flags, and build and enroll/join instructions.

Networking and security

Whistler is the embedded Lisp-to-eBPF compiler. The agent uses it to compile and load networking programs at runtime, without clang or LLVM. A socket load balancer directs Pod connections to ready Service backends. Programs at Pod veths enforce NetworkPolicy and anti-spoofing. A same-node fast path sends traffic directly to local Pods. The agent also implements Gateway API routing.

For cross-node traffic, VXLAN is the default. The optional WireGuard overlay uses authenticated endpoint advertisements, active path trials, and eBPF telemetry. It supports NAT traversal, encrypted relaying, packet-size discovery, and topology-aware sparse routing. gr8s network explain NODE PEER shows why it selected a path. Path health and locality also affect Service backend selection and image-peer ordering.

Internal TLS uses a pure-Lisp TLS 1.3 implementation. It prefers the hybrid X25519MLKEM768 key exchange, which combines classical and post-quantum cryptography. Classical X25519/P-256 is available as a fallback.

Container images travel between nodes over BitTorrent v2. The control plane runs a private tracker with one swarm per image layer. A layer the cluster does not have yet is fetched from the registry by one node, and the others download its pieces from every node that already holds them. Peers authenticate each other with cluster certificates over mutual TLS, and each piece is checked against the layer's digest.

The Gateway speaks OpenTelemetry. It records a span for every request it serves, joins the trace a client's W3C traceparent names or starts one, and hands the backend its span as the parent, so an instrumented application's spans nest under it: one trace shows the browser's request, the Gateway's hop and the application's own work. Agents can also ship their flow events -- connections, drops and why -- as OTLP log records, each Gateway request linked to its trace. Both are configured with OpenTelemetry's standard OTEL_* environment variables and send to any OTLP receiver: an OpenTelemetry Collector, Tempo, Jaeger, Loki or a vendor. A dashboard tab that shows traces (Grafana with Tempo, for one) lets the Network view open a slow edge's requests as traces; deploy/lab has a working Tempo setup.

See Networking & the eBPF dataplane for configuration, protocol details, and operational behavior.

Container runtimes

The embedded containerd uses runc by default. RuntimeClass resolves Pod overhead, scheduling constraints, and the CRI runtime handler. Pods use it to select a configured handler on the node.

The optional gVisor and Kata Containers runtimes support sandboxed and microVM workloads. gr8s can install and validate them automatically. Use gr8s runtime install gvisor or gr8s runtime install kata to install them, then select the runtime with RuntimeClass. See Runtime & the container stack for configuration.

For Common Lisp developers

gr8s is a large, working Common Lisp system — roughly 100,000 lines of handwritten Lisp under src/, plus generated protocol bindings, spanning an API server, controllers, a scheduler, a node agent, a durable store with Raft replication, an eBPF compiler, and a TLS stack — built to be explored from a REPL while it runs.

  • REPL into a live cluster. gr8s debug icl NODE opens an authenticated, RBAC-gated Slynk tunnel to the node's running image and launches ICL's browser IDE against it in one step (--no-launch prints the icl -b --connect line instead). ICL brings syntax highlighting, completion, a TUI object inspector, package and class browsers, flame-graph profiling, and notebooks. Built-in helpers — (debug-threads), (debug-backtraces), (debug-pod "default" "web"), (debug-journal 20) — inspect the node's local context. They live in the GR8S.APISERVER package and a session starts in CL-USER, so evaluate (in-package :gr8s.apiserver) first, or qualify them: (gr8s.apiserver::debug-threads).
  • If you'd rather attach with Emacs or Lem, run gr8s debug slynk --node NODE --kubeconfig KUBECONFIG --local-port 4005 and point Sly (or Lem's Lisp mode) at the printed loopback port; the tunnel stays open while the command runs.
  • Fix and continue. Conditions, restarts, and the interactive debugger let you inspect a failure in context, correct a definition, and resume through an available restart. With suitable debugging settings, SBCL can restart a stack frame using the redefined function. SBCL saves the loaded Lisp environment as an executable, which is how gr8s packages its native binary.
  • eBPF written in Lisp. Whistler compiles the entire dataplane — Service load balancing, NetworkPolicy, tracing probes — from a Lisp DSL to eBPF at runtime, with no clang or LLVM.
  • A Lisp network stack, no OpenSSL. Internal TLS 1.3 is pure Lisp, and the repository shims cl+ssl so even vendored HTTP clients link the pure-Lisp TLS instead of OpenSSL.
  • A stable language on a rich ecosystem. Common Lisp is defined by ANSI INCITS 226-1994, so compiler and library upgrades are separate from changes to the language. gr8s builds on existing libraries for HTTP, gRPC, cryptography, parsing, and concurrency, and SBCL compiles it all to native code.
  • Pinned, reproducible dependencies. ocicl restores the dependency tree from a lockfile (ocicl.csv). The full-server source launcher and Makefile core-system Lisp commands use a controlled bootstrap to select the locked paths without inheriting host ASDF registries or Lisp startup files. The local cl+ssl shim takes precedence; missing pins require ocicl install rather than silently falling back to a host library.
  • Where to start reading. The source map and developer walkthrough tours the code; the documentation style guide explains how the source is annotated and why.

Development and documentation

Run the unit and HTTP tests with make test. Tests that load eBPF programs or run real containers need a privileged environment. Use a disposable VM and follow the testing guide.

Versioning

A gr8s version combines the Kubernetes API version with a gr8s release suffix. For example: v1.37.2-gr8s.1. The API version names the compatibility target; conformance is recorded separately in Conformance results. gr8s version and the Kubernetes /version endpoint report the running build's version.

Creation and development

Anthony Green is the creator of gr8s. He guides its architecture and development; AI assistants generate code, tests, and documentation under his direction. Automated tests help find defects, but do not establish correctness or security.

The name gr8s is a portmanteau of Green — its creator's surname — and k8s, the usual contraction of Kubernetes: in short, "Green Kubernetes."

Contributing

Bug reports, questions, and pull requests are welcome through GitHub Issues. The source map and developer walkthrough explains how the code is organized; Building, running & testing covers the toolchain and make test. Run eBPF and container tests only in a disposable VM. Report suspected vulnerabilities privately per SECURITY.md; releases are summarized in CHANGELOG.md.

License

Apache License 2.0.

About

An experimental Kubernetes implementation in Common Lisp with an eBPF dataplane.

Resources

Contributing

Security policy

Stars

10 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages