Redeploy and delete
A service runs from its current deployment until you deploy it again or delete it. There is no separate stop, start or restart yet.
Redeploy
Deploying again makes a new deployment of the service as it is set now: its image and tag, or its branch, with its current settings and variables. The new replicas start beside the old ones, and the old ones stop once the new ones are ready, so a redeploy is also how you restart a service without downtime.
Open the project and click the service on the canvas. On its Deployments tab, click Redeploy beside the newest deployment, or Deploy on its Overview tab.
A service with a volume stops before its new replica starts, so it is down for a moment. To go back to an earlier version, roll back.
Stop, start and restart
These are not offered yet: no command or API call stops a service and keeps it. Until they are:
- to restart a service, redeploy it;
- to stop it for good, delete it.
Delete a service
Deleting a service deletes its volumes, variables, deployments and domains, and its servers stop its containers. It needs admin on the project and cannot be undone.
Open the project and click the service on the canvas. On its Settings tab, click Delete service at the bottom and confirm.
The data in the service's volumes is not wiped from its server. See Volumes.
Delete a project
Deleting a project deletes every service in it the same way. See Create a project.
Who can do what
| Action | Access needed on the project |
|---|---|
| Redeploy | deploy |
| Delete a service | admin |
| Delete a project | admin |
Every deploy and deletion is written to the organization's audit log, with who did it.