Skip to content
NebulaCtrldocs
Concepts

Projects and environments

How NebulaCtrl organizes work. Organizations own projects, projects hold environments and services, and each service runs as processes from a source.

NebulaCtrl organizes everything in a hierarchy. An organization owns projects. A project has environments and services. A service is deployed separately in each environment and runs as one or more processes.

Organization
├── Clusters, members, teams, API tokens, Git connections
└── Project
    ├── Environments: development, production, preview environments
    └── Services (each deployed per environment)
        ├── Source: image, git, public-git or proxy
        └── Processes: http, worker, cron, job or proxy

Organizations, roles and teams

An organization is the top-level tenant. Every project, cluster, member, invitation and API token belongs to exactly one organization. The first person to sign in to a new control plane becomes the owner of the organization named Default. Its owners also operate the control plane itself, for example by starting a console update.

A role says what a member or an API token may do:

RoleMay
viewerRead everything except secret values.
deployerEverything a viewer may, plus, among other things, change services, processes, variables, domains and volumes, deploy, roll back, cancel deployments and scale.
adminEverything a deployer may, plus, among other things, create projects and environments, connect clusters, decide approvals, invite members, and manage API tokens, Git connections and policy.
ownerEverything an admin may, plus delete or transfer the organization.

An API token carries a role of its own and can be limited to specific projects. A team is a named group of members that owns projects. You manage a team by hand or provision it from your identity provider with SCIM. See Members and teams.

Projects

A project groups the services that ship together. New project starts it with the environments you tick: development, staging and production, all ticked by default. You can add more later. A project also holds its own variables, its deploy concurrency limit and its preview environment settings.

You create a project in the console with New project. Under Start with, choose Empty canvas, Web + Postgres or From a repository. A repository can start the project from its nebula.toml, from a Compose file, or from its Dockerfile alone. You can also install a template, import a Compose file, or declare the whole project in a nebula.toml project file.

The Projects page lists a project per card. Filter projects matches a project's name, slug, description and team. The sort menu beside it orders the cards by Needs attention, Last deploy or Name. Needs attention is the default: projects with a failed deployment come first, then projects with a deployment waiting for approval, then the rest, each group by latest deploy and then by name. Last deploy puts the newest deploy outcome first, and projects that never deployed last. The filter and the sort are kept in the page address.

Each card has a star. A starred project is listed first under every sort, and the stars are yours alone. Each card also shows a small picture of its architecture: the services of the environment furthest along, where they sit on the canvas, and the connections between them, coloured by how each service is doing. The picture loads when the card scrolls into view.

The canvas

A project opens on the canvas of one environment. Each service is a card. The tile on the card names its kind (WEB, WRK, CRN, PG, VLK, …). The card shows its domain or source, its release and when it went live, such as r-4 · 2h ago. Right-click the card and select Open public URL to open the domain in a new tab.

  • Layout per environment. Where each card sits, and the groups around them, belong to the environment. Moving cards in production does not move them in development. A new environment starts with a copy of the layout of the environment it was cloned from. Reset layout in the canvas menu clears the layout of the environment you are viewing only, and its confirmation says so.
  • Groups. Right-click a card and select Add to new group, then name it. A group has a colour, and its menu collapses it to one tile, renames or recolours it, or ungroups it. Drag a card into a group's frame to add it, and out of the frame to remove it. A service is in at most one group per environment.
  • Filter. Filter services… in the canvas menu, Filter services… in the command palette or / opens a filter row under the project name. It dims the cards that do not match a name, kind, status, domain or source. Enter opens the first match, and Esc closes the row. The filter is kept in the page address as ?filter=.
  • List view. Show as a list in the canvas menu, or Show services as a list in the palette, shows the project as a table with each service's state, release, replicas, domain and last deploy. The choice is kept in the page address as ?layout=list.
  • Undo. Moving cards, grouping and Reset layout can be undone and redone for as long as the page is open.
  • Activity. Show activity in the canvas menu or Show environment activity in the palette opens a panel with the latest deploys, approvals, config changes and deletions of this project in the environment on the canvas. It is kept in the page address as ?activity=true.

What the header and a card flag

The chips under the project name list what needs a look. A service that is not healthy has a chip with its status and, when there is one, an action: Review for a service waiting for approval, Why for a failed deploy. Beside them:

Chip or dotMeansSelecting it
N alertsThe environment has open alerts that nobody has acknowledged. The glyph is red when the worst is critical, amber otherwise.Opens the Alerts panel. See Get alerted when a service crosses a threshold.
NAME update availableA newer version of the template the service was installed from is on offer for this environment. Preview environments never show it.Opens Update NAME from its template. See Templates.

A card with unacknowledged alerts shows the amber dot beside its status, and hovering it says how many and how bad. Right-click the card for N alerts… and Update template…. A service a focused preview created but did not deploy reads Skipped on its card; hover for the reason, or right-click it for Deploy anyway. See Preview environments.

A card with staged changes shows an N staged tag. A service whose first deploy is staged has a dashed border and a New · staged tag, or Awaiting approval once its change set waits for one. See Change sets and approvals.

Wiring and Traffic

Wiring is the default. Switch to Traffic with Show traffic in the canvas menu (right-click empty canvas) or Show traffic on the canvas in the command palette. Each environment opens on Wiring, and the choice is kept in the page address as ?canvas=traffic, so a shared link opens on the readings. The list view has no edges and fetches no readings.

  • Wiring. An edge joins a service to each service or database it takes variables from. The edge shows the caller's variable names when you hover or select either end: the first name, then +N for more, then the target's port when it has one.
  • Traffic. The console reads the last 30 minutes from the cluster and refreshes every 30 seconds. The line under the project name says loading traffic until the reading arrives, and the canvas keeps drawing Wiring. If the reading fails, the line says traffic unavailable and a chip with a Retry action joins the chips under it.

Traffic measures two things and labels everything else not measured:

WhereReadingSource
An edge that ends at a Postgres or Valkey databaseN conns: connections the calling service held at the last reading, always visible. The line grows thicker with the count, and hovering shows the window's peak when it was higher.The database engine's own client list, read once a minute. A reading older than three minutes is not measured.
A database cardConnections: every connection at the last reading. Hovering splits it into connections from services of this environment and connections from elsewhere.The same client list.
The card of an http serviceRPM, 5XX and P95 in place of the usual metrics. P95 needs at least 10 requests in the window.The requests the cluster's proxy served to the service. Tailnet-only services, services with no public domain and clusters whose proxy exposes no traffic metrics read —, and hovering says why.
Every other edge and cardnot measured, shown on an edge only while you hover or select an end of it.Nothing measures traffic between two services, and an edge into a collapsed group joins several services. MySQL and MongoDB connections are not read.

A figure the cluster did not report is a dash with its reason, never a zero. A zero appears only when the proxy or the database engine measured and found nothing flowing.

Environments

An environment is a deployment target within a project, such as development or production. Each environment has:

  • One cluster. The environment is bound to a cluster when it's created, to the organization's recommended cluster unless you pick another. A new or unbound environment binds to the connected cluster that is publicly reachable first, then the one already running more of the project's environments, then the one running more of the organization's, then the one with more free memory. An environment with no cluster binds on its first build or deploy.
  • Its own namespace in that cluster, with default-deny network rules. See Networking.
  • Its own variables, domains and process settings. Replicas, resources and volume size are defaults on the service that each environment can override.
  • A tracked branch, main by default, and an auto-deploy setting. A push to the tracked branch builds and deploys a Git service when auto-deploy is on. It's on in development and off in production.

A production environment is protected. Every deploy, rollback, promotion or change set there needs an approval, and some pass at once under your organization's policy. See Change sets and approvals.

A preview environment is a short-lived copy of a base environment for one pull request from the same repository. It deploys from the pull request's head branch and is deleted when the pull request closes, or when it goes 1, 3 or 7 days without a push, as you choose in the project's settings. See Preview environments.

To see how two environments of a project differ, and to stage the differences you pick, select Compare with… in the environment menu. See Compare and sync environments.

Deleting an environment or a project does not remove it at once. It stops serving, leaves lists and the canvas, and stays restorable from Settings > Recently deleted for your organization's recovery window, 48 hours by default. When the window ends, NebulaCtrl deletes everything it owned, including volumes and their backups in object storage. The confirmation lists what goes before you type the name. A preview environment is not recoverable and is removed at once. See Restore a deleted resource.

Services and sources

A service is a deployable unit: an image plus one or more processes. Its source says how the image comes to exist:

SourceThe image comes fromHow it deploys
imageA registry, pulled ready-built.When you deploy a tag or digest. A push trigger can create a release when a matching tag appears in the registry. Without it, NebulaCtrl builds nothing.
gitA repository reached through a Git connection (a GitHub App, Forgejo or GitLab). NebulaCtrl builds it.On every push to the environment's tracked branch, or when you deploy.
public-gitA public repository URL, cloned without any connection. NebulaCtrl builds it.Only when you deploy, because there's no webhook to receive a push.
proxyNo image at all. Every process forwards to an upstream address the cluster can reach.Nothing is built or pulled.

An image source with a push trigger is called trigger-only. See Builds for how Git sources are built, and Deploy an image for registries and tags.

Processes

A process is a named way of running a service's image, with its own command, resources and scaling. The kind decides how it runs:

KindWhat it is
httpA long-running web process with a port, reachable through a domain.
workerA long-running process with no public route. It can declare a TCP port that other services in the same environment reach at svc-SERVICE:PORT.
cronA process that runs on a schedule.
jobA process that runs to completion once for each release.
proxyForwards to an upstream address instead of running an image. Only a proxy service has these.

See Processes for commands, replicas, resources and health checks.

Variables

A variable is a key and value on a project, on an environment, or on one service in one environment. It can be sealed as a secret. A release merges them in ascending order of specificity: external resource, then project, then environment, then service. A more specific scope overrides a broader one. A value can reference another service's variable with ${{ SERVICE.KEY }}. See Variables.

Database services

A database service is a service created from a database template: PostgreSQL 18 or 16, Valkey 9 or 7, MySQL 8, or MongoDB 7. It has a worker process with a TCP port, a volume, and generated secret variables for the connection. PostgreSQL runs on CloudNativePG as a replicated cluster with health-checked failover, and is the only engine with readers and a read endpoint. Valkey, MySQL and MongoDB start with one instance.

A database service gets a daily dump backup only if the organization has an object store, and the schedule keeps the last 7 dumps. Without an object store, no backup is scheduled, and the console tells you so when you create the database. See Databases.

Volumes

A volume is persistent storage attached to a process. A release that touches a volume needs an explicit downtime acknowledgement, because the running release stops before the new one starts; a PostgreSQL database is exempt. On the default K3s storage class, a volume is a directory on the node's disk, so its size is a request that nothing enforces. See Volumes.

Keyboard shortcuts

The console answers to these keys. Single keys do nothing while you type in a field. ? opens the list in the console.

KeyWhereDoes
⌘ or Ctrl + KAnywhereOpens the command palette.
EscAnywhereCloses the top layer: a dialog, a menu, then the open panel.
EscA project canvas with nothing openGoes back to Projects.
/A page with a filter or search boxFocuses it.
NA project canvasOpens New service….
J and KA project canvasOpens the next and the previous service.
EA project canvasOpens the environment menu.
LA service is openOpens its Logs tab.
G, then D, V, L, M, I or SA service is openOpens its Deployments, Variables, Logs, Metrics, Instances or Settings tab. A tab the service does not have is skipped.
RStaged changes existOpens the review of the staged changes.
⌘ or Ctrl + EnterThe review dialogApplies the changes, as its apply button does.
+, −, 0, 1A project canvasZooms in, zooms out, resets the zoom, fits everything.
/A project canvasOpens Filter services under the project name and focuses it. Cards that do not match dim, and Enter opens the first match.
⌘ or Ctrl + ZA project canvasUndoes the last layout change or group change, up to 50 steps in this session.
⇧ + ⌘ or Ctrl + Shift + ZA project canvasRedoes it.

On this page