talira

k0smotron

Manage k0s Kubernetes control planes as pods in a management cluster

open sourceApache-2.0self-hostablefree

k0smotron is a Kubernetes operator that runs k0s control planes as pods in an existing management cluster of any distribution (Kubernetes in Kubernetes), with worker nodes from any infrastructure connecting to them. It's also a Cluster API provider: a control plane provider (hosted in the management cluster or on Cluster API machines), a bootstrap provider for workers, and a Remote Machine infrastructure provider that bootstraps machines over SSH where no other provider exists. Its docs have examples for AWS, Hetzner Cloud, OpenStack, vSphere, KubeVirt and Docker. Mirantis started it, sells support for it, and it's a CNCF Sandbox project under Apache-2.0.

Problems it solves

  • run many Kubernetes control planes as pods in one management cluster instead of a VM trio for each
  • hosted control planes for our own Kubernetes clusters, like a managed service but self-hosted
  • create throwaway Kubernetes clusters for CI and end-to-end tests declaratively
  • keep the control plane in the data centre while worker nodes run at edge locations
  • manage k0s clusters with Cluster API and clusterctl
  • bring Cluster API to bare-metal or odd machines that only offer SSH access
  • run the control planes in one cloud and the worker nodes in several others
  • scale and upgrade a fleet of small edge clusters without dedicated control plane hardware

Features

  • k0s control planes run as pods and other Kubernetes resources in a management cluster of any distribution
  • control plane and worker plane separated, with no direct network connection between them
  • workers from any infrastructure join a hosted control plane
  • Cluster API control plane provider, in-cluster or on Cluster API machines
  • Cluster API bootstrap provider for worker nodes
  • Remote Machine provider: bootstraps machines over SSH
  • provisioning, scaling and upgrading of control planes and workers
  • documented examples for AWS, Hetzner Cloud, OpenStack, vSphere, KubeVirt and Docker
  • installs with one kubectl apply or clusterctl init

Limitations

  • Doesn't update worker VMs in place by itself: without the Cluster API in-place updates extension, workers are replaced1

Capabilities

Has an APIplan not known

Alternatives

The same job

These do what k0smotron does.

  1. Kamaji The Hosted Control Plane Manager for Kubernetes
  2. Gardener Homogeneous Kubernetes clusters at scale on any infrastructure using hosted control planes.
  3. vCluster Tenant clusters: isolated Kubernetes clusters with their own API server, CRDs and RBAC
  4. Cluster API Declarative APIs and tooling to simplify provisioning, upgrading and operating multiple Kubernetes clusters
  5. Cluster API Provider Hetzner Manage Kubernetes clusters on Hetzner, fully declarative, Kubernetes-native and with self-healing
  6. kubeadm Best-practice fast paths for creating Kubernetes clusters with kubeadm init and kubeadm join

Compare k0smotron with the top 3