aegra

by upstreamyard

Helm chartv0.1.9App 0.12.0Apache-2.0Verified publisher

Aegra, the open-source self-hosted alternative to LangGraph Platform. Community chart by upstreamyard, not an official Aegra chart.

About this chart

Aegra Helm chart

Have any questions, feedback or need help (e.g. setup, hardened images, etc.)? Reach out to [email protected]

Helm chart for Aegra, the open-source, self-hosted alternative to LangGraph Platform. It uses the upstreamyard/aegra image.

Community chart by upstreamyard, not an official Aegra chart. Aegra is © its authors, licensed under Apache-2.0.

Install

helm repo add upstreamyard https://upstreamyard.github.io/helm-charts
helm install aegra upstreamyard/aegra \
  --set database.url='postgresql://user:password@your-postgres:5432/aegra'

Or from the OCI registry:

helm install aegra oci://ghcr.io/upstreamyard/charts/aegra \
  --set database.url='postgresql://user:password@your-postgres:5432/aegra'

Verifying the chart

Chart packages from version 0.1.1 are PGP-signed. Import the public key (fingerprint 9B416F989B7E6C65F7F3BFAE7689688B20EC7813) and install with --verify:

curl -s https://upstreamyard.github.io/helm-charts/pgp_keys.asc | gpg --dearmor > upstreamyard.gpg
helm install aegra upstreamyard/aegra --verify --keyring upstreamyard.gpg --set database.url='...'

The OCI copy on GHCR is signed with cosign instead (see the repository README).

Requirements

  • PostgreSQL with the pgvector extension (required, per Aegra's docs). The pgvector/pgvector:pg18 image is Postgres 18 with pgvector included; managed services (RDS, Cloud SQL, Azure) support it too. This chart does not deploy a database.
  • Redis only when replicaCount is greater than 1.

What the chart does

  • Migrations: before every install and upgrade, a Job runs aegra db upgrade, and the pods start with RUN_MIGRATIONS_ON_STARTUP=false, as Aegra recommends for Kubernetes. Set migrations.enabled=false to let a single pod migrate on startup instead.
  • Probes: /live for startup and liveness, /ready for readiness.
  • Several replicas: setting redis.url (or redis.existingSecret) turns on REDIS_BROKER_ENABLED. Installing with more than one replica and no Redis fails with an error.
  • Graceful shutdown: terminationGracePeriodSeconds: 35, a few seconds above Aegra's WORKER_DRAIN_TIMEOUT (30).
  • Security: runs as non-root UID 10001, drops all capabilities, and doesn't mount a ServiceAccount token.

Running your own agents

Out of the box the chart serves the example agents bundled in the image, with no authentication. For real use you bring your own aegra.json, agent code and auth handler. The chart can't mount files yet, so you ship them in your own image built on top of upstreamyard/aegra:

my-agents/
├── aegra.json      # {"graphs": {"agent": "./graph.py:graph"}, "auth": {"path": "./my_auth.py:auth"}}
├── graph.py
└── my_auth.py
FROM upstreamyard/aegra:0.10
USER root
RUN pip install --no-cache-dir simple-salesforce   # only if your code needs extra packages
USER 10001:10001
COPY my-agents/ /app/agents/
ENV AEGRA_CONFIG=/app/agents/aegra.json

Keep the folder under /app: aegra serve ignores an AEGRA_CONFIG outside its working directory /app and silently falls back to the bundled examples. Then push the image to your registry and point the chart at it. More detail is in the image docs.

Authentication is on when your aegra.json has an "auth" entry pointing to a handler (see Aegra's authentication guide). In Aegra 0.10.8 the AUTH_TYPE environment variable does not change this.

Credentials for your agents (LLM keys, Salesforce, Teams, …) go into a Kubernetes Secret and reach the pods as environment variables through extraEnvFrom, never into the image.

Production example

# values-prod.yaml
image:
  repository: registry.example.com/my-agents   # your image built FROM upstreamyard/aegra
  tag: "1.0"
replicaCount: 3
database:
  existingSecret: aegra-db          # key: database-url
redis:
  existingSecret: aegra-redis       # key: redis-url
extraEnvFrom:
  - secretRef:
      name: agent-credentials       # e.g. OPENAI_API_KEY, SALESFORCE_TOKEN

Known issue: first install with several replicas

On the very first install against an empty database, all pods create LangGraph's internal tables at the same moment, and one may fail and get restarted by the startup probe (about 1–2 minutes). It recovers on its own, and later upgrades are not affected. To avoid it, do the first install with replicaCount: 1 and scale up afterwards.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity.
database.existingSecretstring""Name of an existing Secret that holds the connection string (recommended for production).
database.existingSecretKeystring"database-url"Key in existingSecret that holds the connection string.
database.urlstring""Connection string postgresql://user:password@host:5432/db. URL-encode special characters in the password. Stored in a Secret created by this chart. Ignored when existingSecret is set.
extraEnvlist[]Extra environment variables for Aegra, e.g. ENV_MODE, LOG_LEVEL, OTEL settings. See https://github.com/aegra/aegra/blob/main/.env.example
extraEnvFromlist[]Extra environment variables from Secrets or ConfigMaps, e.g. a Secret with LLM keys or credentials your agents use.
fullnameOverridestring""Override the full resource name.
image.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring"upstreamyard/aegra"Image repository. To serve your own agents, use your own image built FROM upstreamyard/aegra (see "Running your own agents").
image.tagstring""Image tag. Defaults to the chart's appVersion.
imagePullSecretslist[]Secrets for pulling from a private registry.
ingress.annotationsobject{}Ingress annotations.
ingress.classNamestring""Ingress class name.
ingress.enabledboolfalseCreate an Ingress.
ingress.hostslist[{"host":"aegra.example.com","paths":[{"path":"/","pathType":"Prefix"}]}]Ingress hosts and paths.
ingress.tlslist[]Ingress TLS configuration.
livenessProbeobject{"httpGet":{"path":"/live","port":"http"},"periodSeconds":10}Liveness probe on /live, as in Aegra's docs.
migrations.activeDeadlineSecondsint600Maximum runtime of the migration Job in seconds.
migrations.backoffLimitint3Retries of the migration Job before the install/upgrade fails.
migrations.enabledbooltrueRun aegra db upgrade in a Job before every install and upgrade (Helm hook), and disable migrations on pod startup. This is the approach Aegra's docs recommend for Kubernetes. If false, each pod migrates on startup, which is fine for a single replica.
migrations.resourcesobject{}Resources for the migration Job.
nameOverridestring""Override the chart name in resource names.
nodeSelectorobject{}Node selector.
podAnnotationsobject{}Extra pod annotations.
podLabelsobject{}Extra pod labels.
podSecurityContextobject{"runAsGroup":10001,"runAsNonRoot":true,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}}Pod security context. The image runs as non-root UID 10001.
readinessProbeobject{"failureThreshold":3,"httpGet":{"path":"/ready","port":"http"},"periodSeconds":5}Readiness probe on /ready (503 until the database and LangGraph backends respond), as in Aegra's docs.
redis.existingSecretstring""Name of an existing Secret that holds the Redis URL.
redis.existingSecretKeystring"redis-url"Key in existingSecret that holds the Redis URL.
redis.urlstring""Redis URL, e.g. redis://redis:6379/0. Stored in a Secret created by this chart. Ignored when existingSecret is set.
replicaCountint1Number of Aegra pods. More than 1 requires redis (Aegra needs Redis to share streaming and the job queue).
resourcesobject{"limits":{"memory":"1Gi"},"requests":{"cpu":"250m","memory":"512Mi"}}Resources for the Aegra container.
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]}}Container security context.
service.portint2026Service port. Aegra listens on 2026 inside the container.
service.typestring"ClusterIP"Service type.
serviceAccount.annotationsobject{}ServiceAccount annotations.
serviceAccount.automountboolfalseMount the ServiceAccount token. Aegra does not use the Kubernetes API.
serviceAccount.createbooltrueCreate a ServiceAccount.
serviceAccount.namestring""ServiceAccount name. Generated from the full name if empty.
startupProbeobject{"failureThreshold":30,"httpGet":{"path":"/live","port":"http"},"periodSeconds":2}Startup probe. /live checks only that the process is up.
terminationGracePeriodSecondsint35Seconds Kubernetes waits after SIGTERM. Aegra's docs: a few seconds above WORKER_DRAIN_TIMEOUT (default 30) so running agent runs can finish.
tolerationslist[]Tolerations.

Deploy aegra with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has aegra 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartaegra is pinned at v0.1.9 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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