Projects, workspaces and environments
- A project is an app as Monk’s platform knows it. It belongs to your personal account or to an organization.
- A workspace is a folder on someone’s computer, usually a checkout of the repository, bound to a project. Several people can have workspaces for the same project. The web dashboard lists them under the project’s Workspaces tab.
- An environment is a named deployment of the project, such as
dev,stagingorproduction. Each environment is linked to a cluster, and several environments can share one cluster.
MANIFEST entry and which images are used, and which cluster receives the deploy. Secrets can be scoped to a project or environment, so staging and production get different values. See Security.
Capsules (preview environments)
Capsules give each branch its own app environment. When you push a branch, a GitHub Actions workflow deploys that branch. When its pull request closes, the workflow removes the environment.Two modes
The plan you review at setup decides what each capsule creates and what it shares. Production data isn’t copied into capsules.
What setup does
Setup needs a configured project (aMANIFEST), a workspace bound to a project, and GitHub credentials entered through the local form. Cloud mode also needs cloud credentials. Monk then:
- writes
.github/workflows/dynenv.yml, using Monk’s GitHub Actions - creates a scoped API key, valid for 365 days
- stores the secrets and variables the workflow needs in a GitHub environment (default
monk-capsules)
Lifecycle
- Push to a branch: the workflow deploys that branch, creating the capsule if it doesn’t exist yet.
main,masterand the branch you were on at setup are excluded by default. - Pull request closed: the capsule is removed.
- Manual runs: the workflow can be started from the GitHub Actions tab with
provision_deploy,deploy,deprovisionordestroy.
Schedules
A schedule sets when capsules are up or down, for example only on weekday working hours. It has a timezone, rules for date ranges or windows, and a default state outside the rules. The project’s schedule applies to all capsules, and one capsule can override it or go back to the project’s schedule. The workflow checks the schedule every hour. Schedule changes are approved in the dashboard.Capsule secrets
- Local puts the
MANIFESTsecrets into the currently selected capsule only. - Global pushes them to GitHub and updates the workflow, so all future capsules get them. It can also refresh the cloud credentials stored in GitHub.
Related
Preview environments
Set up Capsules step by step
CI/CD
Deploy one branch to a fixed cluster
Clusters and clouds
Clusters, node tags and binding
Teams and access
Who can deploy where

