Concepts

Concepts

The few ideas the rest of muster builds on: projects, services, stacks, hooks, approvals and health checks.

Project

A project is a folder with a muster.json. Everything muster generates lives next to it in .muster/.

Project layout
your-project/
├── muster.json          config: services, health checks, deploy order
└── .muster/
    ├── hooks/<service>/ deploy.sh, health.sh, rollback.sh, logs.sh, cleanup.sh
    └── logs/            deploy logs and history (gitignored)

Services and stacks

A service is one deployable thing: an API, a worker, a database. The stack decides which hook templates setup generates.

StackDeploys with
k8skubectl, against a deployment and namespace
composedocker compose
dockerdocker build and run
bareyour own commands on the host
devlocal processes with PID files, plus compose for infra

Infrastructure services (redis, postgres and the like) get pull-only templates and are ordered before app services.

Hooks

Hooks are the shell scripts that do the work. Setup writes them from templates; after that they are yours to edit. muster exports context such as MUSTER_SERVICE and MUSTER_K8S_DEPLOYMENT into every run. See Hooks.

Hook approvals

Hooks run with your credentials, so each machine approves them before they run, and again whenever one changes. Approvals are stored in ~/.muster/trust/, never in the repo: a pushed change can't run on a teammate's machine until they have reviewed it. See Hook approvals & integrity.

Health checks

A deploy counts only once the service is healthy. After the deploy hook, muster runs health.sh (exit 0 = healthy), and again for muster status and the dashboard. See Health checks.

What a deploy does

PhaseWhat happens
PreflightTools, cluster context, disk, ports, hooks, git and SSH are checked.
Hookdeploy.sh runs (optionally after a git pull), with a timeout.
HealthThe service's health check must pass.
RecordThe result goes to history and the deploy log.
RecoverOn failure: the likely cause, then retry, roll back, skip or abort.

Exit codes are stable for scripts: 0 success, 1 failure, 130 cancelled.

Fleets and groups

A fleet deploys one project to many servers, over SSH or the Fleet Cloud relay. A group deploys many projects together, in order.