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/.
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.
| Stack | Deploys with |
|---|---|
k8s | kubectl, against a deployment and namespace |
compose | docker compose |
docker | docker build and run |
bare | your own commands on the host |
dev | local 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
| Phase | What happens |
|---|---|
| Preflight | Tools, cluster context, disk, ports, hooks, git and SSH are checked. |
| Hook | deploy.sh runs (optionally after a git pull), with a timeout. |
| Health | The service's health check must pass. |
| Record | The result goes to history and the deploy log. |
| Recover | On 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.