rdbms

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

README

SQL Storage Backend for Kubernetes

Use a DB such as MySQL, RDS, or Cloud SQL for your Kubernetes cluster state.

Try it out

While the code is fairly generic SQL, it currently is only tested with MySQL. Adopting to other RDBMS should be a trivial effort. But now... use MySQL.

  1. Create a database with the following schema
CREATE TABLE `key_value` (
  `name` varchar(255) DEFAULT NULL,
  `value` mediumblob,
  `revision` bigint(20) DEFAULT NULL,
  `ttl` bigint(20) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ALTER TABLE `key_value`
  ADD UNIQUE KEY `uix_key_value_name` (`name`),
  ADD KEY `idx_key_value__ttl` (`ttl`);
  1. Download this custom patched Kubernetes API Server 1.7.4 server

  2. Run with the arguments

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDSN = errors.New("DB DSN must be set as ServerList")
)
View Source
var (
	ErrRevisionMatch = errors.New("Revision does not match")
)

Functions

func Register

func Register(name string, d dialect)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL