Kubernetes Deployment (Helm)
OpenCodeHub ships with a production-ready Helm chart at:
deploy/helm/opencodehub
Quick Start
Section titled “Quick Start”- Build and publish your application image.
- Create a values override file with secrets and ingress settings.
- Install with Helm:
helm upgrade --install opencodehub ./deploy/helm/opencodehub -f values-prod.yamlRequired Secret Values
Section titled “Required Secret Values”Set these in values-prod.yaml under envSecrets:
DATABASE_URLREDIS_URLJWT_SECRETSERVER_URLINTERNAL_HOOK_SECRETRUNNER_SECRET
Included Resources
Section titled “Included Resources”- Web deployment with configurable security context, probes, affinity/tolerations, topology spread, and HPA.
- Optional dedicated worker deployment with independent scaling controls.
- Optional service account and network policy resources.
- Optional ingress and persistent
/datavolume. - Optional chart-managed secret or external secret reference (
envSecrets.existingSecretName).
Production Notes
Section titled “Production Notes”- Use managed PostgreSQL and Redis outside the chart.
- Keep
REDIS_URLconfigured for multi-instance safety (distributed locks and rate limits). - Enable
networkPolicy.enabled=truein restricted environments.