setup

package
v0.8.22 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package setup prepares a Linux server to run Jokku and (re)starts it.

install.sh and update.sh only fetch the jokku binary and run "jokku setup", so every release carries the host changes it needs: packages, the jokku user, pinned Firecracker / kernel / BuildKit, and the systemd services. Each step checks before it changes anything, so setup is safe to run any number of times.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, out io.Writer, o Options) error

Run brings the server to the state this version of jokku needs and leaves its services running this binary. A control node (the default) gets everything; a worker gets only what running microVMs needs, and an edge only the daemon and the proxy.

Types

type Options

type Options struct {
	// Join makes this server a worker in the cluster whose control node is at
	// this address (host or host:port), using Token from
	// "jokku cluster:join-command".
	Join  string
	Token string
	// Name is this node's name in the cluster (default: the hostname).
	Name string
	// Advertise is the address other nodes reach this one at (default: the
	// address used to reach the internet).
	Advertise string
	// Edge makes this server an edge of a cluster, with the bundle from
	// "jokku edge:add": a public machine that only routes traffic to the
	// nodes behind it.
	Edge string
}

Options select what setup does beyond bringing the server up to date.

Jump to

Keyboard shortcuts

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