Sabakan is a versatile network boot server designed for large on-premise data centers. Currently, it is made only for Flatcar Container Linux.
Project Status: GA (General Availability)
High availability of sabakan is just as easy as running multiple sabakan servers.
Sabakan data are stored and shared in etcd. For example, DHCP lease information are shared between sabakan instances to avoid conflicts.
Machine inventory with IPAM (IP address management)
Sabakan keeps an inventory of machines in a data center. Their IP addresses are automatically assigned by sabakan.
HTTP service (network file server)
Sabakan provides HTTP service for network boot clients. Users can upload any kind of files other than OS images to sabakan. Clients can download them to initialize the system after boot.
Template system for Ignition
Ignition is a boot provisioning system for Flatcar Container Linux. Ignition configuration is not friendly for operators as it is written in a plain JSON.
Sabakan provides a friendly and super versatile template system for Ignition configurations. For each client machine, sabakan renders Ignition configuration from templates.
Machines in the inventory has a life-cycle status. The status can be changed through REST API. Users can build an automatic status controller to mark machines as unhealthy, unreachable, retiring, or retired.
Disk encryption support
To help implementing full disk encryption on client machines, sabakan accepts and stores encrypted disk encryption keys. The key can be downloaded in the next boot to decrypt disks.
sabakan-cryptsetupis a tool for clients to encrypt disks; the tool generates a disk encryption key, encrypts it, and sends the encrypted key to sabakan. In the next boot, it downloads the encrypted key from sabakan, decrypts it, then uses it to decrypt disks.
To track problems and life-cycle events, sabakan keeps operation logs within its etcd storage.
This repository contains these programs:
sabakan: the network service to manage servers.
sabactl: CLI tool for
sabakan-cryptsetup: a utility to encrypt a block device using dm-crypt.
To see their usage, run them with
docs directory contains tutorials and specifications.
Read getting started first.
mtest/ directory contains a set of utilities to setup sabakan on Ubuntu virtual machines.
testadata/ directory contains a sample Ignition template.
An example of production usage can be found in github.com/cybozu-go/neco. The repository bootstraps a full data center system using etcd, vault, sabakan, and many other tools.
Run sabakan with docker
# create directory to store OS images $ sudo mkdir -p /var/lib/sabakan # -advertise-url is the canonical URL of this sabakan. $ docker run -d --read-only --cap-drop ALL --cap-add NET_BIND_SERVICE \ --network host --name sabakan \ --mount type=bind,source=/var/lib/sabakan,target=/var/lib/sabakan \ quay.io/cybozu/sabakan:2.2 \ -etcd-endpoints http://foo.bar:2379,http://zot.bar:2379 \ -advertise-url http://22.214.171.124:10080
Sabakan is licensed under MIT license.
Docker images are available on Quay.io