doqa
by batonogov
DoQA Test Case Management System (TCMS) self-hosted on Kubernetes
About this chart
doqa
DoQA Test Case Management System (TCMS) self-hosted on Kubernetes
Homepage: https://doqa.app
Community status: this is an unofficial, independently maintained Helm chart. It is used in production by its maintainer, but it is not developed or supported by the DoQA vendor. Application licensing and vendor support remain with DoQA.
Licensing: DoQA box-versions require a vendor license key to activate (super-user creation is gated). This chart deploys the stack but does not bypass licensing — request a key from https://doqa.app.
TL;DR
helm repo add batonogov https://batonogov.github.io/helm-charts
helm install doqa batonogov/doqa -n doqa --create-namespace \
--set appUrl=doqa.example.com \
--set ingress.className=traefik \
--set ingress.annotations."cert-manager\.io/cluster-issuer"=letsencrypt
Prerequisites
- Kubernetes 1.32+
- Helm 3.13+ (Helm 4 supported) — templates use only functions available since Helm 3.0 (
lookup,required,toYaml,sha256sum, JSON schema validation); no Helm 3.14-only features are required - An Ingress controller routable from the public DNS pointing to
appUrl - For TLS: cert-manager with a working ClusterIssuer (or a pre-provisioned TLS secret)
- For PostgreSQL via CNPG (default): the
CloudNativePG operator already installed in
the cluster (typically in
cnpg-system) - Storage class supporting
ReadWriteOncePVCs
The DoQA application images live at registry.control.doqa.app and pull
anonymously — no imagePullSecrets are required by default.
Compatibility and support boundaries
| Area | Status | Notes |
|---|---|---|
| DoQA Box | Supported | Component versions are pinned in values.yaml; verified against the vendor archive configs_4_3_13.zip |
| Kubernetes | Supported | 1.32+, as declared by Chart.yaml; manifests use stable Kubernetes APIs |
| Helm | Tested | Helm 3.22.1 in CI and Helm 4 locally; Helm 3.13+ is supported |
| Node platform | Supported | linux/amd64; the current vendor images are single-platform amd64 images |
| Ingress | Configurable | Standard networking.k8s.io/v1 Ingress; Traefik is the repository test profile, while other controllers use ingress.className and annotations |
| Persistent storage | Configurable | Any CSI StorageClass supporting ReadWriteOnce; Longhorn is only the repository test profile |
| PostgreSQL | Configurable | CloudNativePG by default, or an external PostgreSQL service |
| Restricted platforms | Not claimed | ARM, OpenShift, IPv6-only clusters, and enforced Pod Security restricted have not been validated |
The default security context drops all capabilities and disables privilege
escalation. It deliberately does not force runAsNonRoot, a fixed UID, or a
read-only root filesystem because the pinned vendor images have heterogeneous
runtime users. Use defaultSecurityContext and per-component overrides only
after validating the selected images. The MinIO bucket-init Job uses its own
minio.client security contexts plus the configured ServiceAccount, global or
client-specific scheduling, labels, and annotations. It does not inherit
defaultSecurityContext because the current mc image runs as root.
Architecture
Components mirror the vendor docker-compose for v4.3.13:
backend(php-fpm Laravel API),queue(queue:work),cron(schedule:work)autotests-worker(autotests:work, declares the RabbitMQ queues),llm-bulk-queue(queue:workon the long-timeoutllm-bulkqueue)frontend(Nuxt SPA)autotest-parser(FastAPI, RabbitMQ-driven)statistic,llm,notification(+ Celery worker),telegram-bot(optional)websocket(Soketi, Pusher protocol)nginx(internal router) → exposed via Ingress
The canonical upstream input is the vendor's
configs_4_3_13.zip, including
.env.install, both Compose files, and nginx configuration. The DoQA
application services, environment variables, routes, and application image pins
stay aligned with that archive. Kubernetes infrastructure is deliberately
adapted: CNPG or an external PostgreSQL replaces the Compose database, in-tree
mode consolidates the two Redis services, dependency images are pinned by the
chart, TLS terminates at the Ingress, and the MinIO bucket is created by a Helm
hook Job.
Stateful dependencies are provisioned by the chart by default and can be
swapped to external services with <component>.create=false:
| Component | Default | External alternative |
|---|---|---|
| PostgreSQL | CNPG Cluster (1 instance) | postgresql.cnpg.create=false + postgresql.host |
| Redis | In-tree Deployment + PVC | redis.create=false + redis.host |
| RabbitMQ | In-tree Deployment + PVC | rabbitmq.create=false + rabbitmq.host |
| MinIO | In-tree Deployment + PVC + bucket-init Job | minio.create=false + minio.endpoint |
The vendor Compose file runs separate primary and notification Redis services.
The chart shares one Redis instance and uses the notification service’s Redis
command for both workloads. It mounts a PVC at /data but starts its shared Redis instance with
AOF and automatic RDB snapshots disabled. Data written to Redis after startup
can therefore be lost on restart even when the PVC survives.
Secrets
By default the chart generates application secrets (secrets.create=true)
with stable values via lookup — they survive helm upgrade. Fresh app Secrets
contain an APP_KEY whose base64 payload decodes to the 32 bytes required by
Laravel AES-256. Explicit secrets.app, secrets.apiKeys, secrets.pusher,
secrets.rabbitmq, and secrets.minio names select pre-existing Secrets even
when secrets.create=true; the remaining applicable Secrets are still generated.
An explicitly named Secret already owned by the current Helm release remains
rendered during online upgrades so Helm does not prune it. Set
secrets.create=false to plug in pre-existing secrets throughout:
| Secret | Keys |
|---|---|
<release>-app-secrets | app-key, jwt-secret, internal-system-key |
<release>-api-keys | statistic-api-key, notification-api-key, llm-api-key |
<release>-pusher-secret | app-secret |
<release>-rabbitmq-secret | password, erlang-cookie |
<release>-minio-secrets | access-key, secret-key |
The mail and LDAP passwords are always user-provided through secrets.mail
and secrets.ldap.
GitOps and offline rendering
Generated secrets remain stable during direct helm upgrade because Helm's
lookup function reads the existing release Secrets. Renderers without live
cluster access, including helm template and offline GitOps rendering
pipelines, cannot perform that lookup and will generate different random values
on subsequent renders. For those workflows, set secrets.create=false and
provide stable values through pre-created Secrets, External Secrets, Sealed
Secrets, or an equivalent secret management system.
Requirements
Kubernetes: >=1.32.0-0
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Default affinity applied to all components. Per-component values override this. |
| apiBaseUrl | string | "" | Optional explicit API base URL (API_BASE_URL). Leave empty to use internal backend service. |
| appFrontendUrl | string | "" | Frontend URL (defaults to appUrl when empty) |
| appUrl | string | "doqa.example.com" | DoQA application URL (host without protocol, e.g. "doqa.example.com") |
| autoscaling.backend.maxReplicas | int | 5 | Maximum replicas for backend HPA |
| autoscaling.backend.minReplicas | int | 2 | Minimum replicas for backend HPA |
| autoscaling.backend.targetCPUUtilizationPercentage | int | 80 | Target CPU utilization percentage for backend HPA |
| autoscaling.enabled | bool | false | Enable HorizontalPodAutoscaler for backend, frontend, and queue Deployments. When enabled, the replicas field is removed from those Deployments (HPA manages replicas) |
| autoscaling.frontend.maxReplicas | int | 5 | Maximum replicas for frontend HPA |
| autoscaling.frontend.minReplicas | int | 2 | Minimum replicas for frontend HPA |
| autoscaling.frontend.targetCPUUtilizationPercentage | int | 80 | Target CPU utilization percentage for frontend HPA |
| autoscaling.queue.maxReplicas | int | 5 | Maximum replicas for queue HPA |
| autoscaling.queue.minReplicas | int | 3 | Minimum replicas for queue HPA |
| autoscaling.queue.targetCPUUtilizationPercentage | int | 80 | Target CPU utilization percentage for queue HPA |
| autotestParser.affinity | object | {} | |
| autotestParser.image.repository | string | "doqa/doqa-parsing-autotests" | Autotest parser image repository |
| autotestParser.image.tag | string | "4.3.1-box" | Autotest parser image tag |
| autotestParser.nodeSelector | object | {} | |
| autotestParser.replicas | int | 1 | Autotest parser replica count |
| autotestParser.resources | object | {"limits":{"cpu":"250m","memory":"256Mi"},"requests":{"cpu":"100m","memory":"128Mi"}} | Resource requests and limits |
| autotestParser.tolerations | list | [] | |
| autotestsWorker.affinity | object | {} | |
| autotestsWorker.nodeSelector | object | {} | |
| autotestsWorker.prefetch | int | 10 | RabbitMQ prefetch per autotests:work process (vendor AUTOTESTS_PREFETCH) |
| autotestsWorker.replicas | int | 3 | Autotests worker replica count (vendor scales it with QUEUE_WORKERS) |
| autotestsWorker.resources | object | {"limits":{"cpu":"250m","memory":"256Mi"},"requests":{"cpu":"100m","memory":"128Mi"}} | Resource requests and limits |
| autotestsWorker.tolerations | list | [] | |
| autotestsWorker.waitForRabbitmq | bool | true | Wait for RabbitMQ AMQP readiness before starting the worker. Vendor 4.3.1 gates the autotests service on a healthy broker; the chart mirrors that by probing the broker first. |
| autotestsWorker.workerProcesses | int | 3 | Parallel autotests:work processes per pod (vendor AUTOTESTS_WORKER_PROCESSES) |
| backend.affinity | object | {} | |
| backend.cachePrefix | string | "laravel_cache:" | Laravel cache prefix. Preserve across upgrades and brand changes to retain cache entries and JWT revocations. (CACHE_PREFIX) |
| backend.containerSecurityContext | object | {"capabilities":{"add":["CHOWN","DAC_OVERRIDE","SETUID","SETGID"]}} | Capabilities required to start nginx/FPM in the vendor backend. Global chart restrictions remain in effect. |
| backend.image.repository | string | "doqa/doqa-backend" | Backend image repository (relative to image.registry) |
| backend.image.tag | string | "4.3.14-box" | Backend image tag |
| backend.livenessProbe | object | {"initialDelaySeconds":60,"periodSeconds":30,"tcpSocket":{"port":"http"},"timeoutSeconds":10} | TCP liveness avoids restarting the backend on FPM saturation or database unavailability. null disables the probe. |
| backend.migrate.waitForRabbitmq | bool | true | Wait for RabbitMQ AMQP readiness before running migrations. Vendor 4.2.0 added a compose dependency on rabbitmq because some migrations dispatch jobs; the chart mirrors that by probing the broker first. |
| backend.nodeSelector | object | {} | |
| backend.phpFpm.enabled | bool | false | Use the current image configuration with an overridden pool size. Size memory for your workload. |
| backend.phpFpm.maxChildren | int | 5 | Maximum worker count; other pool settings are inherited from the image and validated by the init container. |
| backend.readinessProbe | object | `{"exec":{"command":["sh","-ec","code=$(curl -sS -o /dev/null -w '%{http_code}' --max-time 5 http://127.0.0.1:8080/)\ncase "$code" in 2?? | 3?? |
| backend.redisPrefix | string | "laravel_database_" | Laravel Redis prefix. Preserve across upgrades and brand changes to retain sessions and other Redis state. (REDIS_PREFIX) |
| backend.replicas | int | 2 | Backend replica count |
| backend.resources | object | {"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"250m","memory":"256Mi"}} | Resource requests and limits |
| backend.sessionCookie | string | "laravel_session" | Laravel session cookie name. Preserve across upgrades and brand changes to keep existing browser sessions. (SESSION_COOKIE) |
| backend.skipMigrate | bool | false | Disable only the migration init container; the vendor image CMD may run migrations independently |
| backend.tolerations | list | [] | |
| cron.affinity | object | {} | |
| cron.nodeSelector | object | {} | |
| cron.resources | object | {"limits":{"cpu":"250m","memory":"256Mi"},"requests":{"cpu":"100m","memory":"128Mi"}} | Resource requests and limits |
| cron.tolerations | list | [] | |
| debug | bool | false | Enable verbose debug logging |
| defaultSecurityContext.container.allowPrivilegeEscalation | bool | false | |
| defaultSecurityContext.container.capabilities.drop[0] | string | "ALL" | |
| defaultSecurityContext.pod | object | {} | |
| doqaBackendUrl | string | "" | Optional backend URL (DOQA_BACKEND_URL) passed to backend workloads and the autotest-parser. Empty matches the vendor default. |
| extraAnnotations | object | {} | Extra annotations added to every resource. Keys with a checksum/ prefix (e.g. checksum/env, checksum/config) are chart-managed and reserved; any s |
Deploy doqa with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has doqa on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdoqa is pinned at v0.11.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply