Skip to content

Kubernetes (Helm)

The chart is in the repository at deploy/helm/neuroops and is published with each release as an OCI chart.

Install

helm install neuroops oci://ghcr.io/neuroops/charts/neuroops \
  --namespace neuroops --create-namespace
kubectl -n neuroops port-forward svc/neuroops 8080:80

Open http://localhost:8080, sign up (the first account becomes the admin of a new workspace) and follow Get ready to be paged on the dashboard. Check the install with:

helm test neuroops -n neuroops

It passes when the web app, the API through the web server, and the backend's database check all answer.

From a checkout instead of the registry: helm install neuroops deploy/helm/neuroops -n neuroops --create-namespace.

Images

The chart's default images are ghcr.io/neuroops/neuroops/{backend,frontend} at the chart's app version. Images for a version exist once that version is released; to follow the main branch set --set image.tag=main.

What it creates

  • backend Deployment (2 replicas) and Service, port 8080. Migrations run when it starts, under a database lock, so replicas can start together and upgrades need no extra job.
  • web Deployment (2 replicas) and the neuroops Service on port 80: nginx serving the app and proxying /api to the backend. This is the only entry point; put your ingress or load balancer in front of it.
  • postgresql StatefulSet with a 10 GiB volume, for trying it out (see below).
  • A Secret with generated keys, kept across upgrades and on helm uninstall.
  • PodDisruptionBudgets; optionally an Ingress, a HorizontalPodAutoscaler for the backend and NetworkPolicies.

Every pod runs as a non-root user with a read-only root filesystem, no Linux capabilities and the runtime's default seccomp profile. No pod gets a Kubernetes API token.

Production values

# values-prod.yaml
config:
  publicURL: https://ops.example.com      # the address people use; also the base of links in pages
  platformAdminEmails: ops-lead@example.com

ingress:
  enabled: true
  className: nginx
  host: ops.example.com
  tls:
    - secretName: neuroops-tls
      hosts: [ops.example.com]

postgresql:
  enabled: false
externalDatabase:
  existingSecret: neuroops-db            # key POSTGRES_DSN: "host=… user=… password=… dbname=… sslmode=require"

secrets:
  existingSecret: neuroops-keys          # JWT_SECRET, AGENT_SECRET_KEY, MASTER_ENCRYPTION_KEY
  extra:
    LLM_API_KEY: sk-…                    # optional: AI explanations with your own key

networkPolicy:
  enabled: true
backend:
  autoscaling:
    enabled: true
kubectl -n neuroops create secret generic neuroops-keys \
  --from-literal=JWT_SECRET="$(openssl rand -base64 32)" \
  --from-literal=AGENT_SECRET_KEY="$(openssl rand -base64 32)" \
  --from-literal=MASTER_ENCRYPTION_KEY="$(openssl rand -hex 32)"
helm upgrade --install neuroops oci://ghcr.io/neuroops/charts/neuroops -n neuroops -f values-prod.yaml

Why each of these matters:

  • config.publicURL is the only origin the API accepts browser requests from. A wrong value shows up as sign-in failing in the browser.
  • The bundled Postgres is a single pod with no backups. Use a managed or replicated Postgres 16.
  • secrets.existingSecret: tools that render the chart without reading the cluster (Argo CD, helm template) cannot see keys made earlier, so the chart refuses to generate them there. Keep the keys in your own Secret. MASTER_ENCRYPTION_KEY decrypts stored integration secrets: back it up.

Every value is described in the chart's README (deploy/helm/neuroops/README.md), and values.schema.json rejects unknown keys and wrong types.

Alerts from inside the cluster

Send to the web server's Service, for example from Alertmanager:

receivers:
  - name: neuroops
    webhook_configs:
      - url: http://neuroops.neuroops.svc/api/v1/ingest/prometheus
        send_resolved: true
        http_config:
          authorization:
            type: Bearer
            credentials: <source token from Integrations>

More in Prometheus Alertmanager.

Upgrade and uninstall

helm upgrade neuroops oci://ghcr.io/neuroops/charts/neuroops -n neuroops --reuse-values
helm uninstall neuroops -n neuroops

Upgrades replace pods one at a time; each pod waits a few seconds before stopping so requests in flight finish. helm uninstall leaves the generated Secret and the Postgres volume in place, so installing again with the same release name finds the same data and keys. Delete them yourself (kubectl -n neuroops delete secret neuroops, kubectl -n neuroops delete pvc -l app.kubernetes.io/instance=neuroops) to start over.

If it does not work

  • config.publicURL is required / must be scheme://host[:port] with no path: set config.publicURL to something like https://ops.example.com.
  • set externalDatabase.dsn or externalDatabase.existingSecret: you turned off the bundled Postgres without saying where the database is.
  • this render cannot read the cluster: you rendered with helm template, Argo CD or --dry-run=client. Create the Secrets yourself and set secrets.existingSecret (and postgresql.auth.existingSecret with the bundled Postgres), or install with helm install.
  • Backend pods stuck in Init: the wait-for-database init container waits for the bundled Postgres; check kubectl -n neuroops logs statefulset/neuroops-postgresql.
  • Backend pods restarting with database initialization failed: the external database is not reachable or the connection string is wrong: kubectl -n neuroops logs deploy/neuroops-backend.