Deploy and promote¶
OpenChoreo describes the underlying model — releases, ReleaseBindings, promotion — under Deploy and Promote.
Principle: only through the platform¶
- The live state is the
mainbranch of your repository. What runs in an environment is always a build of a commit onmain. - Deployments happen exclusively through the platform. Manual changes in the cluster (editing Deployments, restarting pods with other images) are overwritten at the next reconciliation.
- Work on feature branches and bring changes to
mainvia merge request.
The path through the environments¶
| Step | How | Result |
|---|---|---|
| Build | Portal → Component → Build | new release |
| → development | automatic (autoDeploy: true) |
https://<project>.development.test.ccc-onconnect.de |
| → staging | Portal → Component → Deploy → Promote | https://<project>.staging.test.ccc-onconnect.de |
| → production | Portal → Component → Deploy → Promote | https://<project>.app.ccc-onconnect.de |
Promoting does not create a new build: staging and production get exactly the release that ran in the previous environment. Promotion only follows the chain development → staging → production.
The platform shows per environment which release is running and whether it is ready (Ready). A release counts as ready when its pods are running and pass their readiness check.
Environment-specific values¶
When promoting you can override per environment (portal: Configure & Deploy or the environment's overrides):
| What | Field in the ReleaseBinding |
|---|---|
Replicas, CPU/memory, imagePullPolicy |
componentTypeEnvironmentConfigs (replicas, resources.requests/limits) |
| Environment variables and files | workloadOverrides.container.env / .files |
| Trait parameters | traitEnvironmentConfigs |
Example — production with two replicas and its own log level:
apiVersion: openchoreo.dev/v1alpha1
kind: ReleaseBinding
metadata:
name: web-production
namespace: onconnect
spec:
environment: production
owner:
projectName: myproject
componentName: web
releaseName: web-<release>
componentTypeEnvironmentConfigs:
replicas: 2
resources:
requests: {cpu: 200m, memory: 512Mi}
limits: {cpu: "1", memory: 1Gi}
workloadOverrides:
container:
env:
- key: LOG_LEVEL
value: warn
See also Environment Overrides.
Rolling back and switching off¶
- Roll back: choose an earlier release for the environment in the portal (or set
the ReleaseBinding's
spec.releaseNameto the old release). Fix the actual problem onmainafterwards. - Switch off an environment:
spec.state: Undeployon the ReleaseBinding.
Optional: deploying from GitLab CI¶
For projects that prefer to drive build and promotion from their pipeline, there is
the CI component onconnect/ci-catalog/parkdeck/deploy
(https://gitlab.ccc-onconnect.de/onconnect/ci-catalog/parkdeck):
| Pipeline | Result |
|---|---|
| Merge request | build of the MR commit → development |
| Default branch | build → staging |
Tag x.y.z |
promotion of this commit's release → production |
It is not used by default. Projects that use it set the component to
autoDeploy: false, so that only the pipeline decides what runs where. The platform
creates the required credentials (OPENCHOREO_CLIENT_ID, OPENCHOREO_CLIENT_SECRET)
in every project repository; they may only build and deploy that project's
components. The component's README describes how to include it.