Smee

Overview

Tinkerbell relies on network booting a server in order to prepare it to execute workflows. Smee is Tinkerbell’s DHCP server, handling IP addresses and requests. It is also the TFTP server, serving iPXE and the initial installation image.

Smee is written in Go, and can be built, run, and tested outside of the Tinkerbell stack. Take a look at the code in the tinkerbell/smee GitHub repository.

Responsibilities

When a Worker comes on-line for the first time, it PXE boots and sends a DHCP request to the Provisioner. Smee receives the request and assigns the Worker its IP Address as defined in the hardware data.

Next, Smee communicates over TFTP to download the iPXE script to the Worker.

The iPXE script tells the Worker to download and boot an in-memory operating system called hook. From there you are inside an OS and you can do what you like, the most common action is to partition your hard drive and installing the actual operating system. Tinkerbell abstracts those actions with the concept of a workflow.

Architecture

Usage

Configuring an image registry requiring authentication

When using a registry requiring authentication Smee must be configured with the registry credentials so it can pass them to Hook. The environment variable: SMEE_EXTRA_KERNEL_ARGS is used to pass this information on to Hook and the Tink Worker.

SMEE_EXTRA_KERNEL_ARGS="registry_username=<username> registry_password=<password> docker_registry=<registry> insecure_registries=<registry1,registry2>"

Other Resources

One of the core concepts behind Tinkerbell is network booting.

Let’s imagine you are in a datacenter with hundreds of servers; it is not reasonable to go over all of the one by one with a USB stick to install the operating system you need. If you use Provisioner with an API, like Tinkerbell does, things get even more complicated as there isn’t an operator running around with USB stick for every API request.

There are a lot of articles and use cases for netbooting, here a few that our contributors enjoyed or even wrote: