Skip to content
nirvatiPublic
forked from k3s-io/kine

About

Run Kubernetes on sqlite, not etcd.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

microkine

A trimmed-down kine for Nirvati OS: only the SQLite backend (and etcd pass-through) is kept. The MySQL, PostgreSQL, NATS, t4/S3, memory, remote and split backends and their dependencies are removed, which makes binaries that embed kine about 16 MB smaller. Module path: github.com/nirvati/microkine. Releases follow upstream kine (vX.Y.Z-micro.N is based on kine vX.Y.Z).


Kine (Kine is not etcd)

Kine is an etcdshim that provides an etcd-compatible API on top of various backend datastores:

Features

  • Can be ran standalone so any k8s (not just K3s) can use Kine
  • Implements the subset of the etcd V3 API required by the Kubernetes API server - not intendend to be usable as a generic etcd server

See an example.

High Availability

If you want to run multiple Kine instances (or multiple K3s server nodes, using the Kine embedded in K3s) you must use an external SQL database, or NATS, or T4.

  • The SQLite and Memory backends support only a single Kine instance.
  • The SQLite backend does not support use of shared-cache mode without WAL journal.
  • The SQLite backend does not support use of temporary or in-memory databases; use the Memory backend instead.
  • The SQLite backend does not not support running multiple instances against a shared DB file; either on a single host, or on shared storage mounted by multiple hosts.

Developer Documentation

A high level flow diagram and overview of code structure is available at docs/flow.md.

About

Run Kubernetes on sqlite, not etcd.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages