Backends
kobe supports multiple backends for provisioning virtual clusters. The backend is selected per pool via spec.backend.type. All backends expose the same lease API. They differ in how each ClusterInstance is provisioned, how much of the pool spec they honor, and what the operator can check for you. For guidance on which runtime to pick, see Runtime strategy.
Choosing a backend
Use k3s unless you have a reason not to. It is the only backend that implements every capability below, and the only one whose CI leg can fail a release.
| Capability | k3s | k0s | vcluster | CAPI | vkobe (on hold) |
|---|---|---|---|---|---|
spec.cluster fields honored | All | All except kubeletSharedMount and registryMirrors | version only | None (uses spec.backend.capi) | None (uses spec.backend.vkobe); serverArgs only without that block |
| Shared PostgreSQL datastore | Yes | Yes | No | No | No (uses KobeStore) |
VerifiedDestroy cleanup | Yes, with conditions | No | No | No | No |
| Drift detection after operator upgrades | Yes | No | No | No | No |
| Scheduling-blocked detection | Yes | No | No | No | No |
| Crashloop detection | Yes | No | No | No | No |
| Readiness gates and addons | Yes | Yes | Yes | Yes | Yes |
| CI conformance | Gates main and tags | Nightly, non-gating | Nightly, non-gating | None | Nightly, non-gating |
What each row means:
spec.clusterfields honored. A pool that sets a field its backend ignores stops creating members. Its status showsphase: Failingand aConfigSupportedcondition with reasonUnsupportedFieldsthat lists the fields. Existing members keep running and keep serving leases, and are not recycled for the spec change. Remove the fields, or move to a backend that supports them, and the pool resumes. See Unsupported fields.VerifiedDestroycleanup. A lease withcleanupMode: VerifiedDestroyis refused before binding on every backend except k3s. On k3s it has further conditions; see Pool lifecycle.- Drift detection after operator upgrades. Every backend recycles idle members when the pool spec changes. Only k3s also notices when a new operator version would render a different pod spec for the same pool spec. On other backends, idle members keep the old rendering until they are recycled for another reason.
- Scheduling-blocked and crashloop detection. When a k3s member is stuck in
Creatingbecause its pods cannot be scheduled or keep crashing, the operator says so instatus.messageand in metrics, and holds off respawning unschedulable pods. Other backends report only the creating timeout. - CI conformance. "Non-gating" means the leg runs but a failure does not fail the workflow. CAPI has no in-tree test provider.
Unsupported fields
The operator checks each pool against what its backend reads. A field counts as set when it asks for something:
serversother than1, oragentsabove0- a non-empty
serverArgs - any
persistence,expose,taints(including[]),placement,clusterDomain,registryMirrorsorkubeletSharedMount backend.datastore.goldenTemplates: true, which no backend reads yet
cluster.version is required on every pool and is never flagged, although CAPI and vkobe ignore it. spec.resources is outside this check.
A blocked vcluster pool looks like this:
status:
phase: Failing
conditions:
- type: ConfigSupported
status: "False"
reason: UnsupportedFields
message: "backend vcluster ignores cluster.servers, cluster.placement; remove them or pick a backend that supports them. No new members are created until then."
With no Ready member, new leases against the pool are refused with pool_exhausted instead of queueing for a cluster that will never come.
Changed behaviour. Earlier releases accepted these fields and silently ignored them. A pool that carried one kept provisioning clusters that did not match its spec. After upgrading, such a pool stops creating members until the field is removed.
k3s (default)
k3s clusters are managed as Kubernetes StatefulSets in the host cluster. Each cluster is a k3s server pod with an embedded SQLite datastore by default.
spec:
backend:
type: k3s
cluster:
version: v1.32.0+k3s1
servers: 1
When to use: The default choice for most use cases. Fast to provision, low overhead, and well-tested.
Shared PostgreSQL datastore
k3s and k0s can use a shared PostgreSQL datastore instead of embedded SQLite. Each cluster gets its own database and role on that server.
goldenTemplates is reserved. The operator does not clone clusters from template databases, so a pool that sets it to true is blocked as an unsupported field. The golden image path is not validated either.
spec:
backend:
type: k3s
datastore:
secretRef: kobe-postgres-secret # Secret with key "connection-url"
The referenced Secret must contain a connection-url key with a valid PostgreSQL DSN.
k0s
k0s clusters follow the same pattern as k3s but use the k0s distribution. Use this if your workloads require k0s-specific features or you're standardizing on k0s in production. It honors the same spec.cluster fields as k3s except kubeletSharedMount and registryMirrors, and lacks the k3s-only checks listed in Choosing a backend.
spec:
backend:
type: k0s
cluster:
version: v1.32.0+k0s.0
CAPI (Cluster API)
The CAPI backend delegates cluster provisioning to any Cluster API infrastructure provider. kobe creates the necessary CAPI Cluster and infrastructure CRDs, then waits for the cluster to reach Ready state before adding it to the warm pool.
CAPI ignores spec.cluster apart from the required version, and blocks a pool that sets any other field in it. Everything it creates comes from spec.backend.capi. There is no CAPI leg in kobe's CI, so test it against your provider before relying on it.
spec:
backend:
type: capi
capi:
infrastructureApiVersion: infrastructure.cluster.x-k8s.io/v1beta1
infrastructureKind: DockerCluster
infrastructureSpec:
# Provider-specific spec, passed through as-is
controlPlaneEndpoint:
host: ""
port: 6443
When to use: When you need to use an existing CAPI infrastructure provider, or when kobe's built-in backends don't support your target environment.
vcluster
The vcluster backend deploys one vcluster (loft-sh, Apache 2.0) instance per ClusterInstance via the upstream Helm chart, into a dedicated per-instance host namespace — isolating projection scope per instance and making teardown trivially correct (helm uninstall + namespace delete).
spec:
backend:
type: vcluster
vcluster:
chartVersion: "" # optional; operator's pinned default applies when unset
values: | # optional; free-form vcluster chart values (YAML),
sync: # merged on top of the operator's defaults
toHost:
ingresses:
enabled: true
Pool spec coverage. vcluster reads only cluster.version from spec.cluster. Configure everything else through values. Setting another spec.cluster field blocks the pool; see Unsupported fields.
Kubernetes version. cluster.version selects the guest Kubernetes release. vcluster uses it verbatim as the image tag on ghcr.io/loft-sh/kubernetes, so it must name a published tag — v-prefixed with a full patch version, e.g. v1.32.3. A leading v is added if you omit it. Leave cluster.version empty to take the chart's own default.
Values that do not name a real tag fail visibly, as an ImagePullBackOff on the guest control plane rather than a silently different cluster. Two spellings worth calling out:
1.32— a minor version with no patch is not a published tag.v1.31.3+k3s1— a k3s/k0s build suffix. It is not rewritten to upstreamv1.31.3: that is a different image, and substituting it would give you a cluster other than the one your manifest names. Use the upstream version you actually want.
Changed behaviour. Earlier releases ignored
cluster.versionon this backend entirely, so every vcluster pool silently ran the chart default regardless of what its manifest said. If your pool carries a version that was never taking effect, check it names a real tag before upgrading — it now will.
Volume snapshot RBAC. The operator installs each release under its own service account, and Kubernetes refuses to let it grant permissions it does not hold. Chart 0.34.0 renders snapshot.storage.k8s.io rules by default, so the operator sets rbac.enableVolumeSnapshotRules.enabled: false. Kobe pools do not sync volume snapshots. If a pool needs them, set the key back in values and grant the operator the matching rules.
When to use: High density and low per-cluster overhead without maintaining an in-house syncer. Note that fidelity boundaries (cloud identity such as IRSA, syncer coverage, version skew) are inherited from vcluster — route tenants who need full cluster semantics to a real-cluster backend.
vkobe (on hold)
On hold. Development of vkobe and its
kobe-syncruntime is paused — see Runtime strategy. Existing pools keep working; prefervclusterfor new density pools.
vkobe is kobe's in-house virtual cluster runtime. Each virtual cluster runs as a single pod containing a proxy-based kube-apiserver, an optional kube-controller-manager, and kobe-sync. It does not depend on any third-party virtual cluster runtime.
spec:
backend:
type: vkobe
vkobe:
dataStoreRef:
name: kobe-etcd # name of a KobeStore CRD in the same namespace
version: "1.32" # Kubernetes API version to expose
syncers:
- pods
- services
- configmaps
- secrets
- endpoints
- ingresses
kcm:
controllers:
- deployment
- replicaset
- statefulset
- job
- namespace
- serviceaccount
- garbagecollector
vkobe clusters share the host cluster's node pool. Pods scheduled in the virtual cluster are translated and created as host pods, making them subject to the host's resource constraints and scheduling.
When to use: Do not start a new vkobe pool. Prefer vcluster for density. This section remains so existing pools can be read.
KobeStore CRD
The vkobe backend requires a KobeStore CRD that points to an external etcd or kine instance:
apiVersion: kobe.kunobi.ninja/v1alpha1
kind: KobeStore
metadata:
name: kobe-etcd
namespace: kobe
spec:
driver: etcd
endpoints:
- https://etcd.kobe.svc:2379
tls:
secretRef: etcd-client-certs
capacity:
maxClusters: 100
Comparison
| k3s | k0s | CAPI | vcluster | vkobe (on hold) | |
|---|---|---|---|---|---|
| Isolation | Full | Full | Full | Namespace | Namespace |
| Overhead per cluster | Low | Low | Provider-dependent | Very low | Very low |
| Golden images (Velero) | Not validated | Not validated | Varies | No | No |
| Shared datastore | PostgreSQL | PostgreSQL | No | No | etcd or kine (required) |
| Custom addons | Yes | Yes | Yes | Yes | Yes |
For operator-side checks and CI coverage, see Choosing a backend.