Environments
Nomatron is in early access. Some advanced workflows may not be covered in the public docs.
An Environment describes a deployment target for an app.
Teams use environments to represent stages, regions, clusters, or other meaningful destinations such as development, staging, production, or customer-specific targets.
Environments sit between an app and its runtime infrastructure. Every deployable job in the app can deploy into the app’s environments, whether the job uses a raw Nomad jobspec or a Nomatron template.
Apps and jobs can be configured before environments exist, but deployment workflows require at least one environment. Plans, applies, promotions, and speculative plans need an app environment so Nomatron can resolve the target cluster, namespace, variables, and approval rules.
Environments relate to:
- apps, which own the environment list and deployment order;
- app jobs, which deploy into those environments;
- clusters, which provide runtime capacity;
- variables, which can differ by environment; and
- operations, which often move through environments in an ordered sequence.
The first deployment normally starts in the first environment by priority. Promotion advances the release to the next environment. A new deployment or redeployment to the first environment can happen at any time and supersedes incomplete promotion progress.
Operationally, environments matter because they:
- define the places where releases are promoted or applied;
- make deployment order and progression visible;
- allow environment-specific values and policy to exist cleanly; and
- help teams reason about blast radius when making changes.