CI for Apple platforms
Build agents and test runners are already native macOS binaries. Run them as Deployments, Jobs and CronJobs under the upstream controllers, on Macs you already have.
k3sm is the macOS/Apple-Silicon analog of k3s, a single-binary Kubernetes distribution whose Pods run as native Darwin processes by default. The vm RuntimeClass runs linux/arm64 images in a per-pod micro-VM.
Open source under Apache-2.0; contributions are DCO signed.
$ k3sm kubectl apply -f examples/hello-native.yaml
pod/hello-native created
$ k3sm kubectl get pods
NAME READY STATUS RESTARTS AGE
hello-native 1/1 Running 0 4s
$ pgrep -fl hello-native
48213 hello-native -f /dev/null
kubectl apply ends in posix_spawn: a sandboxed process on an APFS clone that ps lists.vm RuntimeClass boots a linux/arm64 image instead.vm RuntimeClass boots a linux/arm64 image in its own micro-VM.lo0 Pod range, and wireguard-go routes between them without NAT; a Thunderbolt cable between two Macs can carry Pod traffic beside the mesh.Two ways install the same k3sm, on Apple Silicon with macOS 26 or newer.
The app. A menu bar status item and a window onto the node; it installs k3sm, offers its updates, and shows what is running.
The install script. One command from the terminal; install covers pinning a version and every other channel, and the quickstart has building from source.
curl -fsSL https://k3sm.io/install.sh | shEither way, the installed launchd daemon starts the control plane and registers the Mac as a node. Two commands tell you whether it came up:
k3sm status # one screen: daemons, apiserver, node, workloads, data root
k3sm doctor # preflight checks for this Mac, each with its fixsudo k3sm stop shuts k3sm down completely and keeps it down across reboots, and sudo k3sm start
brings it back (stopping and starting). The
quickstart has the first manifest, including the
kubernetes.io/os: darwin selector every k3sm Pod needs.
The first Pod, shown at the top of this page, is a native binary your Mac sandboxes and supervises.
No container or VM sits between the Pod and the process table. kubectl scheduled it, Seatbelt
confines it, launchd keeps its supervisor alive, and ps sees an ordinary macOS process.
Build agents and test runners are already native macOS binaries. Run them as Deployments, Jobs and CronJobs under the upstream controllers, on Macs you already have.
An MLXModel custom resource and an mlx.k3sm.io/gpu extended resource reconcile a model into a
served /v1/chat/completions endpoint in the Mac’s unified memory.
A Pod that names the vm RuntimeClass boots a linux/arm64 OCI image in its own
Virtualization.framework guest and reaches Running, on a single node.
kubectl exec -it and kubectl attach give it a terminal. linux/amd64 is a later release.
k3sm build -t myapp:dev . builds any Dockerfile into the cluster registry. A copy-only one becomes a
darwin/arm64 image; one that RUNs commands becomes a linux/arm64 image, built by BuildKit in a
micro-VM that starts on first use. No external build service or container engine is needed.
Join more Macs with a single token over a wireguard-go mesh. Each node keeps its own pod range, routed without NAT. A worker schedules Pods, serves NodePorts across nodes, and resolves cluster DNS in-Pod. Two Macs can also share the control plane on embedded etcd (high availability); two servers tolerate no server failure. Both are experimental, and multi-node graduates in a later release on the roadmap.
k3sm keeps the upstream control plane and rebuilds everything that assumed Linux on macOS. The
walk-through from kubectl apply down to posix_spawn is on architecture.
k3s (Linux) k3sm (macOS-native)
getaddrinfo shim in pods nativek3sm-runtimed (Seatbelt at host paths, APFS, posix_spawn, userspace limits) nativelo0-alias pod IPs and a wireguard-go mesh nativeHelmChart and HelmChartConfig in helm.k3sm.io/v1, with the same fields as k3s, and manifests in a root-owned directory applied automatically nativevm
RuntimeClass runs linux/arm64 images; linux/amd64 is a later release.[Conformance], which requires Linux containers, cgroups and CNI. The
conformance profile states what is claimed._k3sm
user under its own Seatbelt profile.limits. Memory is sampled and can drive an OOMKill or an eviction; CPU
gets QoS and no ceiling.limitations has the complete list, including volumes, DNS, restartPolicy,
and which addresses Services answer on.