Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Learn
Start
Guides
Domain packs
Participants
Security and privacy
Pilot kits
Operations
Ecosystem

Deploy

Source docs/ops/deploy.md

For a cluster the operator already holds, once OD-01 to OD-07 are decided. Every step is reversible until the first participant writes to the new deployment.

First deployment of an environment

  1. Prerequisites in the cluster: an ingress controller (namespace in ingress.controllerNamespace), an external-secrets controller with the store named in secrets.store, cert-manager when ingress.tls.issuer.create is set, a volume snapshot controller when snapshots.enabled, and the monitoring stack (ServiceMonitor, Probe and PrometheusRule resources, a blackbox prober) when monitoring.* is on. Label nothing by hand: the NetworkPolicies select namespaces by their kubernetes.io/metadata.name.
  2. Secrets: create every secret://obsp/<env>/... path of the environment file in the secret store (variables.md); keys are generated by their holders (OD-04), never by the deployment.
  3. Images: push the images of the release to images.registry; in production record each digest in images.digests. Check each image runs as user 10001 with a read-only root file system before use.
  4. Render and review: python3 infra/deploy/render.py --env <env>; review the diff of rendered/<env>/ in a pull request; make deploy-lint.
  5. Plan: kubectl apply -k infra/deploy/rendered/<env> --dry-run=server, or terraform plan with infra/deploy/terraform/examples/existing-cluster. Read the plan; nothing should be deleted.
  6. Apply (a person with the owner’s approval, never an unattended job): kubectl apply -k ... or terraform apply of the reviewed plan.
  7. Check: every pod ready (kubectl -n <ns> get pods); the health paths answer through the ingress; run the live harness against the gateway from the conformance runner (POST /v1/runs/live); run one backup by hand (kubectl -n <ns> create job --from=cronjob/obsp-registry-backup-0 first-backup) and restore it into a scratch volume (restore.md).

Routine release

  1. Change images.tag (and digests) in the environment file; render; review the diff in a pull request; it should change images only.
  2. Staging first: apply, run the live harness and the conformance suite, watch the alerts for an hour.
  3. Production: apply. StatefulSets roll one pod at a time from the highest ordinal; each must pass readiness before the next. A gateway pod’s restart replays its store file, so readiness can take minutes on a large store.
  4. Record the release, the digests and the time in the change log of the environment.

The static web sites are released separately, by release id: static-sites.md.

If any step fails: rollback.md.