Skip to content
Skip to Content

Deployments

What a deployment is: one rollout of a service with its settings of that moment, its statuses, and the history a service keeps.

A deployment is one rollout of a service. It takes the service's settings and variables as they are at that moment, runs them on your servers, and stays in the service's history afterwards.

You make one with openpanel deploy, with the API, with MCP, or by pushing to a Git branch when push to deploy is on. See Deploy.

What a deployment keeps

Each deployment keeps a copy of what it ran, so a later change to the service never rewrites its history.

FieldWhat it holds
imageThe image it runs. For an image service, the image and tag you set, such as nginx:1.27. For a Git service, the image its build made, filled in once the build ends.
commitFor a Git service, the commit you asked for. Empty when you deployed the branch's newest commit.
configThe service's settings when the deployment was made: start command, variables, ports, health check, limits, address, load balancer, replicas, volumes, and the server each replica runs on. Secrets appear only as references, never as values.
rollbackOfFor a rollback, the deployment whose image it runs again.
errorWhy it failed, in plain words.
createdByThe person who made it, or empty when push to deploy made it.

Settings take effect at the next deploy

Changing a service's settings or its variables changes nothing that runs. The next deployment takes them. This lets you change several things and roll them out together.

Statuses

StatusWhat it means
queuedA Git service waits for its build to start.
buildingThe build runs on your server. See How builds work.
deployingYour servers are starting the new containers. An image service starts here.
runningEvery replica runs, and passes its health check if it has one.
failedThe build or the rollout failed. error says why.
supersededIt ran, and a newer deployment of the service replaced it.
cancelledA newer deployment of the service replaced it before it was ready.

A rollout fails when an image cannot be pulled, a container cannot be made, a server refuses the change, a container exits three times, or the replicas are not ready within 15 minutes. A build fails when it reports an error, when it runs longer than 30 minutes, or when it has not finished within 60 minutes of the deploy, for example because the server's agent is offline. See A deploy or a health check fails.

How a rollout replaces what runs

  • The old version keeps serving until the new one is ready. On each server, the old containers run beside the new ones until every new one is ready, then for 5 seconds more. The edge sends traffic to a new replica as soon as it is ready.
  • A failed rollout changes nothing that serves. If a new replica fails, the old ones keep serving, and the service goes back to the deployment that ran before.
  • A service with a volume stops first. Its old container stops before the new one starts, so two containers never write to one volume. Such a service is briefly down during each deploy.

Where replicas run

A deployment places each replica on one of the servers the service may run on, taking the servers in turn in a fixed order, so the same settings always place the same way. A service with a volume runs one replica, on the server that holds the volume: the server it was first deployed on.

A server that has been disconnected stays in a service's list until someone edits it, but nothing is placed on it. A deploy with no usable server is refused.

History

A service keeps its deployments. The API and openpanel deployments list the newest 100. To run an earlier one again, roll back: that makes a new deployment of the earlier image with today's settings.

Each server keeps the images of the newest five deployments of each service, plus any it runs now, so a rollback to a recent Git deployment needs no new build.