KiteGitHub
Quickstart

Kubernetes without the overhead

A control plane on Cloudflare for cents a month, or one process on your own servers. From one small device to as large as you grow, sandboxes included.

$ curl -fsSL https://get.runkite.io | sh
$0.65
a month for the control planeServerless, 5 nodes · EKS: $72
13 MiB
node agent at 100 podsUpstream: 249 MiB
98 ms
write latency, p99150,000 pods · 5,000 nodes
1.99 s
sandbox wake, p9950,000 sandboxes · 40 a second

Use cases

From tiny devices to massive scale

Run a whole cluster on one small, constrained device, and grow the same cluster as far as your workloads go. The control plane runs on Cloudflare Workers and Durable Objects or on your own servers, and moves between them without starting over.

13 MiB node agent at 100 pods

Sandboxes for agents and untrusted code

Give each agent run, build or untrusted job its own sandbox under gVisor or Kata. A sandbox starts in capacity its pool already holds, with no Pod to schedule, and sleeps when idle, so one cluster runs tens of thousands of them.

wakes in 1.99 s at p99

Machines in many places

Put stores, factory floors, labs, a rack at home and VMs in two clouds in one cluster. Nodes dial out to the control plane, so a node behind NAT needs no inbound port and no VPN.

kite-agent join --cluster … --token …

A cluster for each customer, team or pull request

A control plane costs cents a month on Cloudflare, so you can give each customer or team its own cluster instead of a namespace in a shared one, and start one for each pull request.

$0.65 a month at 5 nodes

How it works

Every write goes to one writer, which appends it to the cluster's log. The controllers act on the log, and each node's agent gets its work over one connection. Pick a flow to follow it step by step.

Clients
kubectl, Helm, operatorsKubernetes API, unchanged
Serverless control plane · Cloudflare
API endpointa Worker: routes requests, holds watches
Controllersscheduler, controllers
Writerowns the log
Relayshold node WebSockets
Linux hosts
node-1
Node agentcontainerd, CNI, nftables, WireGuard, DNS
pods
node-2
Node agentcontainerd, CNI, nftables, WireGuard, DNS
pods

One writer for each cluster. No machines.

kubectl apply: a Deployment becomes running pods

  1. kubectl sends the Deployment to the Worker over HTTPS, and the Worker forwards it to the writer.
  2. The writer authenticates the caller, applies RBAC and admission, and appends the write to the log. It responds once Cloudflare has stored the write.
  3. The writer sends the change to the controllers, which keep a copy of the log. The Deployment and ReplicaSet controllers create the pods, and the scheduler places each one on a node.
  4. The controllers send their writes back, and the writer checks each one against the log, as it checks a client's write.
  5. The writer sends the node a new assignment, through the node's relay.
  6. The node agent starts the pod through containerd and reports its status. The writer appends the status to the log, so a watch sees it.

Comparison

What replaces each upstream component

Control plane

  • etcd
  • kube-apiserver
  • kube-scheduler
  • kube-controller-manager
  • metrics-server
  • VPA recommender
  • Cluster Autoscaler or Karpenter
  • ingress and load balancer controllers
kite-control

One process on your servers, with its storage and these controllers built in. On Cloudflare, nothing to run.

Node

  • kubelet
  • kube-proxy
  • flannel
  • CoreDNS
  • Calico or Cilium
kite-agent

One process beside containerd, with WireGuard between nodes and nftables for Services.

containerd, CNI plugins and CSI drivers stay as they are.

Kite, EKS and k3s

Kite serverlessKite self-hostedEKSk3s
Control plane machines you runNoneOne server, one and a standby, or a Raft group of 3 or 5None. AWS runs them1, or 3 or more for high availability
Control plane cost a month$0.65 at 5 nodes, $21.57 at 1,000Your machines$72 at any sizeYour machines
Where the cluster's state livesOne log in a Durable ObjectOne log: SQLite on disk, Postgres, a bucket, or Raftetcd, run by AWSSQLite on one server, embedded etcd, or an external database
What a node runsNode agent: 13 MiB at 100 podskubelet, kube-proxy and the VPC CNIkubelet, kube-proxy and flannel in one process
API connections from each node1, through a relay or a follower3: kubelet, kube-proxy and the VPC CNIkubelet and kube-proxy, in one process
How a node connectsDials out on TCP 443, and reaches other nodes on UDP 51820In the cluster's VPC, or over a VPN or Direct Connect as a hybrid nodeDials the server on TCP 6443, and reaches other nodes on UDP for flannel
ConformanceNot CNCF certified yet. Tested with the upstream conformance suite. DetailsCertified KubernetesCertified Kubernetes

On one host at 100 pods, the node agent used 13 MiB, and kubelet, kube-proxy and flannel used 249 MiB. EKS and k3s nodes were not measured. Cost on Cloudflare is billed usage at list prices.

How it's built and tested

Written in Rust

The control plane, the node agent and the CLI. The same control plane code builds to WebAssembly for a Worker on Cloudflare, and to one binary for your own servers.

GitHub →

Deterministic simulation

The real cluster code and Raft group on a virtual clock, under seeded faults: dropped sockets and messages, stalled machines, crashes between apply and commit, evicted Durable Objects, failing SQLite. A failure replays exactly from its seed. The relays and the copy's lease are also TLA+ specs, checked by TLC.

Testing →

Upstream conformance

The Kubernetes conformance suite, against both control planes. The specs Kite declines are listed, with the reason for each.

Compatibility →

Optimized for scale and cost

SLO runs on AWS at 5,000 nodes and 150,000 pods. Simulated runs count their polls and SQL statements against a budget, so a change that adds work fails.

Scale and performance →Costs →

Start a cluster on your laptop

A control plane and one node, each in a Docker container, with no Cloudflare account.

Deploy a cluster for each pull request from CI →

$ curl -fsSL https://get.runkite.io | sh
$ kite local up --update-kubeconfig
  control  https://127.0.0.1:6443  (0.2175.0)
  node     node-1
$ kubectl get nodes
NAME     STATUS   ROLES    AGE   VERSION
node-1   Ready    <none>   11s   v1.37.0+kite