Deploy and Promote
Deploy to the First Environment
Via Backstage UI
- Navigate to your Component in the Backstage console
- Go to the Deploy tab
- The first environment card shows your deployment status
For components with autoDeploy: true, the deployment happens automatically when the Component and Workload are created. For manual deployment, use the CLI or configure overrides through the environment card settings.
Via CLI
Deploy the latest release to the root (first) environment:
occ component deploy my-service --namespace default --project default
Deploy a specific release:
occ component deploy my-service --release my-service-5d7f658d9c
Promote to the Next Environment
Promotion moves a deployment from one environment to the next in the pipeline (e.g., development to staging).
Via Backstage UI
- On the Deploy tab, find the environment card for the deployed environment
- Click the Promote button
- The deployment promotes to the next environment in the pipeline
Via CLI
# Promote to staging
occ component deploy my-service --to staging
# Promote to production
occ component deploy my-service --to production
View Deployment Status
Via Backstage UI
The Deploy tab shows:
- Deployment status per environment (Ready, NotReady, Failed)
- Last deployed timestamp
- Container image reference
- Release name
- Endpoint URLs
Click View K8s Artifacts on an environment card to see the full resource tree, including Deployments, Pods, Services, and HTTPRoutes.
Via CLI
# Check ReleaseBinding status
occ releasebinding list --namespace default --project default --component my-service
# Check component status
occ component get my-service --namespace default
Undeploy and Redeploy
Undeploy
Undeploying removes the running workload from an environment without deleting the ReleaseBinding. This lets you redeploy later without reconfiguring.
In the Backstage UI, click Undeploy on the environment card.
Redeploy
To restore an undeployed component, click Redeploy on the environment card. This reactivates the existing ReleaseBinding.
Rollback
To roll back to a previous release, deploy an older ComponentRelease by name:
occ componentrelease list --namespace default --project default --component my-service
# NAME COMPONENT AGE
# my-service-a1b2c3d4e5 my-service 9d
# my-service-f6e5d4c3b2 my-service 2d
Release names are generated as <component>-<hash>, so take the one to roll back to from that list. Without --to, the command rolls back the first environment of the deployment pipeline:
occ component deploy my-service --release my-service-a1b2c3d4e5
To roll back a later environment, name it with --to. The previous environment must already be on that release, so roll back each environment in pipeline order, starting with the first:
occ component deploy my-service --release my-service-a1b2c3d4e5 --to production
This points the environment's ReleaseBinding at the older release, which rolls back the deployment.
What's Next
- Environment Overrides: customize configuration per environment
- Monitor and Troubleshoot: logs, metrics, traces and alerts of your components