ZOYKU火线榜

k3s-io/kine技术文档

Run Kubernetes on MySQL, Postgres, sqlite, not etcd.

目录大纲 (TOC) (3 章节)▾
多语言回退提示:当前仓库原作者暂未发布本地化文档,已为您无缝切换至官方英文原版(English),排版及代码实例完整保真。
极速安装
go get github.com/k3s-io/kine

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.

文档镜像归档自 GitHub 官方源路径 · 访问原项目 GitHub
最后同步快照:2026-11-09