k3sm

kubernetes for macOS, natively

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.

A first Pod, once the install has run:
$ 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

A Pod is a Mac process

k3sm is the macOS and Apple-Silicon analog of k3s: the upstream Kubernetes control plane in one binary, on Macs. Where a desktop container tool puts Linux containers in a VM, k3sm runs Mac processes as Pods (compare).
How a Pod becomes a Darwin processkubectl apply sends the Pod to the upstream kube-apiserver, and the scheduler binds it to the Mac. The Virtual Kubelet with the Darwin provider, which registers the Mac as a Node, asks k3sm-runtimed over gRPC on a unix socket to start it. k3sm-runtimed, running as the unprivileged _k3sm user, calls posix_spawn. The Pod is a native Darwin process under a default-deny Seatbelt profile, on an APFS clone root, and ps lists it: no container and no VM.kubectl applyany Kubernetes API clientkube-apiserverupstream Kubernetes; thescheduler binds the Pod to the MacVirtual Kubelet+ the Darwin providerregisters the Mac as a NodegRPC over a unix socketk3sm-runtimedthe unprivileged _k3sm userthe containerd analogposix_spawnPod: a native Darwin processSeatbelt profiledefault-deny sandboxAPFS clone rootcopy-on-writelisted by psno container, no VM
kubectl apply ends in posix_spawn: a sandboxed process on an APFS clone that ps lists.

Native by default, Linux when asked

Apple-platform builds and tests, Metal and CoreML jobs, and inference on the Apple GPU run on the host as Pods. A Pod that names the vm RuntimeClass boots a linux/arm64 image instead.
The two runtime paths on one MacOn the default path a Pod is a Mac binary running as a native Darwin process under its own Seatbelt profile, directly on macOS, with no VM and no container runtime in between. A Pod that names the vm RuntimeClass runs a linux/arm64 image in its own micro-VM through Virtualization.framework, on a Linux guest kernel. One Mac runs both kinds of Pod.default patha Mac binaryvm RuntimeClassruntimeClassName: vmSeatbelt profileone per Podnative Darwin processno VM and no containerruntime in betweenits own micro-VMVirtualization.frameworklinux/arm64 processLinux guest kernelmacOS on Apple Siliconone Mac, one node, both kinds of Pod
The default path runs a Mac binary on the host; the vm RuntimeClass boots a linux/arm64 image in its own micro-VM.

Several Macs, one cluster

Join as many Macs as you have, one token each. Multi-node is experimental and the Thunderbolt interconnect is alpha.
Several Macs as one clusterA server Mac runs the control plane and a node. Worker Macs join as agents, as many as you add. Each node gives its Pods lo0 alias addresses from its own /24 Pod range. The Macs are linked by a wireguard-go mesh on a utun device over the network, so Pod traffic between them is routed, not translated. A Thunderbolt cable between two Macs can carry Pod traffic beside the mesh.server Maccontrol plane and a nodelo0: its own /24 rangePodPodwireguard-go meshon utun, over the networkworker Macjoined as an agentlo0: its own /24 rangeworker Macjoined as an agentlo0: its own /24 rangeworker Mac none join token each,as many as you addThunderboltcable, optional
Each Mac keeps its own lo0 Pod range, and wireguard-go routes between them without NAT; a Thunderbolt cable between two Macs can carry Pod traffic beside the mesh.

Get Started#

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.

k3sm app icon
Download for Mac

Version 0.2.3 (289 MB) for Apple silicon and macOS 26 or newer, Developer ID signed and notarized by Apple.

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 | sh

Either 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 fix

sudo 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.

What People Run on It#

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.

What Replaces Each k3s Component#

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)

apiserver / scheduler / controller-manager
the same components, built from source upstream
etcd
kine → SQLite, or embedded etcd for an experimental two-server control plane upstream
CoreDNS
a per-node in-process resolver on the cluster DNS address, plus a getaddrinfo shim in pods native
kubelet
Virtual Kubelet + a Darwin provider (logs, exec and port-forward are provider-built) native
containerd + runc
k3sm-runtimed (Seatbelt at host paths, APFS, posix_spawn, userspace limits) native
Flannel
lo0-alias pod IPs and a wireguard-go mesh native
kube-proxy
a userspace Service proxy native
systemd / OpenRC
launchd, an app-bundle-wrapped daemon native
helm-controller, auto-deploying manifests
HelmChart and HelmChartConfig in helm.k3sm.io/v1, with the same fields as k3s, and manifests in a root-owned directory applied automatically native

What k3sm Does Not Do#

  • Does not run Linux images on the default path, where they are refused at pull. The vm RuntimeClass runs linux/arm64 images; linux/amd64 is a later release.
  • Does not pass CNCF [Conformance], which requires Linux containers, cgroups and CNI. The conformance profile states what is claimed.
  • Does not isolate tenants on one node, because every Pod runs as the same unprivileged _k3sm user under its own Seatbelt profile.
  • Does not enforce CPU limits. Memory is sampled and can drive an OOMKill or an eviction; CPU gets QoS and no ceiling.
  • Does not enforce NetworkPolicy as a security boundary. Each node applies it to Service-VIP ingress for its own Pods only, and direct Pod-IP traffic bypasses it.

limitations has the complete list, including volumes, DNS, restartPolicy, and which addresses Services answer on.