Kubernetes and OpenShift

The Helm chart under deploy/helm/coverops installs the same four parts as the Compose appliance (the API, the dashboard, a schema migration that runs before every upgrade, and a database) on any Kubernetes 1.25+ or OpenShift 4.12+. The images are the same images; the Compose and Helm paths are two packagings of one product, and a backup from one restores into the other.

Install

helm upgrade --install coverops ./deploy/helm/coverops \
  --namespace coverops --create-namespace \
  --set host=coverops.example.com \
  --set database.url='postgresql://coverops:…@pg.internal:5432/coverops?schema=public&sslmode=require' \
  --set image.pullSecrets[0].name=coverops-registry \
  --set backups.enabled=true \
  --set backups.rcloneSecret=coverops-rclone \
  --set backups.rcloneRemote=s3:acme-backups/coverops

Beforehand:

kubectl -n coverops create secret docker-registry coverops-registry \
  --docker-server=160313985872.dkr.ecr.eu-central-1.amazonaws.com --docker-username=AWS --docker-password="$(aws ecr get-login-password --region eu-central-1)"
kubectl -n coverops create secret generic coverops-rclone --from-file=rclone.conf

With the licence required (api.env.COVEROPS_LICENSE_REQUIRED, the default) the first visit opens the first-run setup wizard, which makes the company administrator; BOOTSTRAP_PASSWORD is used only on an unlicensed trial. When the Cunda Installer runs the setup it sets secrets.setupManaged: installer (and secrets.installerUrl). Then configure SSO and turn Required on: the same first-day steps as the installation guide.

What the chart creates

ObjectPurposeNotes
Job (pre-upgrade hook)the schema migration on upgradeHelm waits for it; the API Deployment is not rolled until it succeeds. A failed migration fails the upgrade; nothing runs on an old schema
api init container migratethe schema migration on a fresh installruns before the API container in every API pod; after an upgrade's Job it finds nothing pending. A pre-install hook cannot do this: it would run before the chart's Secret and bundled PostgreSQL exist
Deployment api + Serviceingest and dashboard API/health readiness and liveness; stateless, so one replica or many, nothing shared but the database
Deployment web + Servicethe dashboard, rendering server-sidetalks to the API inside the cluster; the browser never needs a route to the API
SecretJWT secret, bootstrap password, database URLgenerated on first install and kept across upgrades (helm.sh/resource-policy: keep); or bring your own with secrets.existingSecret
ConfigMapretention, logging and the other non-secret settingsapi.env and api.extraEnv
StatefulSet postgres (optional)the bundled database for evaluationoff as soon as database.url is set
Ingress or RoutesTLS and routing: /v1 and /scim to the API, the rest to webone host, one certificate
CronJob backup (optional)a database dump on a schedule, copied off-clusterthe Compose sidecar's image and script
PersistentVolumeClaim backups + Job backups-bind (with backups)where the dumps are keptstorage classes that bind on first use (local-path, gp2/gp3, AKS disks) would leave the claim Pending until the first scheduled run and helm --wait timing out; the bind Job mounts it once so it binds at install. Rendered only while the claim is not Bound, then removed; the claim is never touched
NetworkPolicy (optional)database reachable from api/migrate/backup only; API from web and the ingress namespacetighten the ingress namespace selector in production

Pod security is the restricted profile: non-root, no privilege escalation, all capabilities dropped, seccomp RuntimeDefault. The images write only to the mounted volumes, which the image makes group-writable (group 0), so an arbitrary UID works.

Ingress controllers

The live trace feed is server-sent events. The one thing every controller needs is no response buffering and a long read timeout on /v1:

ControllerSetting (the chart's ingress.annotations default covers nginx)
ingress-nginxnginx.ingress.kubernetes.io/proxy-buffering: "off", proxy-read-timeout: "3600", proxy-body-size: 64m
Traefikno buffering by default; set traefik.ingress.kubernetes.io/router.middlewares only for body limits
HAProxy (OpenShift router)haproxy.router.openshift.io/timeout: 3600s on the Route (set by the chart)
AWS ALB controlleralb.ingress.kubernetes.io/load-balancer-attributes: idle_timeout.timeout_seconds=3600
Azure AGICappgw.ingress.kubernetes.io/request-timeout: "3600"; disable response buffering on the gateway
Istio / a meshplain HTTP/1.1 upstream is fine; raise the route timeout

Compression: the dashboard server does not compress its pages and bundle; the API compresses its own JSON. The chart cannot switch compression on for you, because ingress-nginx sets it for the whole controller, not per Ingress: set use-gzip: "true" in the controller's ConfigMap (its default gzip-types already leaves text/event-stream out). On other controllers compress text types and never text/event-stream or /v1/mcp; see network-dns-tls.

TLS: with cert-manager, annotate the Ingress (cert-manager.io/cluster-issuer: letsencrypt) and the chart's ingress.tls.secretName is created for you; with a corporate CA, create that Secret from your tls.crt/tls.key. Agents then need the CA root in their runtime; see network-dns-tls.

OpenShift

helm upgrade --install coverops ./deploy/helm/coverops -n coverops --create-namespace \
  --set host=coverops.apps.cluster.example.com \
  --set openshift.enabled=true --set ingress.enabled=false \
  --set database.url=… --set image.pullSecrets[0].name=coverops-registry
  • SCC: the restricted(-v2) SCC admits every pod; no custom SCC, no anyuid. The project's assigned UID range is honoured because the chart leaves runAsUser to the platform when openshift.enabled is set; if your cluster pins podSecurityContext.runAsUser, remove it in values.
  • Routes: three edge-terminated Routes on one host (/v1, /scim, /), the router's default certificate or yours in openshift.route.*; reencrypt/passthrough are available when the API must present TLS itself (it does not by default; put a sidecar in front for that).
  • Images: mirror into the internal registry (oc image mirror 160313985872.dkr.ecr.eu-central-1.amazonaws.com/coverops/coverops-api:2026.11.10 image-registry.openshift-image-registry.svc:5000/coverops/coverops-api:2026.11.10, or your Quay) and set image.registry. For disconnected clusters, the bundle's images.tar.gz can be pushed from a bastion with skopeo copy docker-archive:….
  • Backups: the CronJob runs under the restricted SCC; the backups PVC needs a storage class the project may bind.

Databases on Kubernetes

Use a managed service or a corporate cluster (CloudNativePG, Crunchy, Zalando operators are all fine: one database, one owner role, TLS). The bundled StatefulSet is for evaluation only: it has no replication and its backup is the chart's CronJob, not PITR.

Agents in the cluster

Instrumented services do not need the chart; they need the agent and a route to the API Service or host. For services in the same cluster, the auto-attach webhook under deploy/k8s-auto-attach/ injects the agent into any pod that carries coverageops.io/attach: "java" (or node): no manifest changes, one kubectl apply for the webhook. The agent's endpoint can be the internal Service (http://coverops-api.coverops.svc:4300) when the pods are in the cluster and the external hostname otherwise.

Upgrades

helm upgrade coverops ./deploy/helm/coverops -n coverops --reuse-values --set image.tag=0.3.0

The hook Job runs the migration first; if it fails, the upgrade fails and the old pods stay. helm rollback returns the previous images; if a migration ran, restore the backup taken before (the CronJob's latest, or a manual coverops-backup-once Job); see backup-restore.

Values worth reading

deploy/helm/coverops/values.yaml is commented. The ones people change: host, database.url, image.registry/tag/pullSecrets, api.env.COVERAGEOPS_TRACE_RETENTION_DAYS, api.replicas, ingress.*/openshift.*, backups.*, networkPolicy.enabled.

api.resources.limits.memory (4Gi) and api.env.NODE_OPTIONS (--max-old-space-size=3072, ~75% of it) go together: change one, change the other. Each API pod admits large coverage reports under its own memory budget (COVEROPS_INGEST_MAX_INFLIGHT_BYTES, by default its heap limit / 20, about three 48 MB reports); more replicas means more budget in total, not a shared one. See operations and the ingest protocol.