Documentation Index
Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt
Use this file to discover all available pages before exploring further.
Helm Configuration
The em-runtime Helm chart packages all platform services and their dependencies into a single deployable unit. This guide covers the chart architecture, deployment modes, secret management, and production configuration.Chart Overview
The chart deploys and manages the following components:| Component | Description |
|---|---|
| em-runtime-governance | Organizations, projects, and permissions |
| em-runtime-assets | Artifacts, data connections, files, and models |
| em-runtime-utils | Data catalog, scheduling, context packs, and memories |
| Keycloak | Identity and access management (multi-tenant realms) |
| OpenFGA | Fine-grained authorization (Zanzibar model) |
| Infisical | Secrets management (optional; can be replaced by ESO + GCP Secret Manager, see Secrets Management) |
| PostgreSQL | Persistent data storage (optional, in-cluster) |
| Redis | Caching and session storage (optional, in-cluster) |
Deployment Modes
- In-Cluster (Default)
- External Databases (Production)
All dependencies (PostgreSQL, Redis) are deployed as part of the Helm release within the cluster.Best for development, testing, and quick setup.
Secret Management
All platform credentials are consolidated into a single chart-managed Secret namedem-runtime-secrets. In external mode, you provide base connection details, and the chart auto-computes derived values.
External Credentials Secret
Create this before installing the chart when using external databases:Set
redis-scheme to rediss (double s) for TLS connections (e.g., GCP Memorystore with in-transit encryption).S3 Storage Credentials
External Object Storage
For production, use S3-compatible object storage instead of the default PVC:Provider-Specific Notes
| Provider | Configuration |
|---|---|
| AWS S3 | No S3_ENDPOINT_URL needed. Set S3_REGION to your bucket’s region. |
| Google Cloud Storage | Use HMAC keys. Set S3_ENDPOINT_URL to https://storage.googleapis.com, S3_REGION to auto. |
| MinIO | Set S3_ENDPOINT_URL to your MinIO endpoint (e.g., http://minio:9000). |
Enabling HTTPS
EM-Runtime uses Gateway API for routing. TLS termination is configured on the Gateway resource using cert-manager.Install cert-manager
Install cert-manager with Gateway API support enabled (
config.enableGatewayAPI=true).Service URL Environment Variables
Service-to-service communication uses canonical URL environment variables. These names were standardized as part of PE-200; legacy aliases are retained as temporary hotfixes for older application versions.| Canonical name | Replaces (legacy) | Purpose |
|---|---|---|
KEYCLOAK_URL | AUTH_URL, EM_RUNTIME_KEYCLOAK_URL | Keycloak base URL |
EM_RUNTIME_ASSETS_URL | RUNTIME_URL (when used for asset routing) | Assets service base URL |
EM_RUNTIME_UTILS_URL | RUNTIME_URL (when used for utils routing) | Utils service base URL |
UI compliance and external link variables
The Runtime UI surfaces compliance links (Terms of Service, Privacy Policy, DPA) and an embedded analytics script. Configure them via env vars on theem-runtime-ui deployment:
| Variable | Purpose |
|---|---|
YIELD_INSIGHTS_URL | URL of the Yield Insights solution (semiconductor deployments only) |
TERMS_OF_SERVICE_URL | Terms of Service link surfaced in the UI footer |
PRIVACY_POLICY_URL | Privacy Policy link surfaced in the UI footer |
EMERGENCE_DPA_URL | Data Processing Agreement link |
EMERGENCE_DPA_UPDATE_URL | DPA update notification link |
TERMLY_SCRIPT_SRC | Termly script source URL for compliance banner |
em-runtime-ui.env block in values.yaml, the same way as service URLs above.
Environment Variable Override System
Each runtime service has three layers for environment variables:| Layer | Format | Purpose |
|---|---|---|
env | map[string]string | Simple key-value pairs. Use this to override defaults. |
envVars | List of K8s env objects | Variables using valueFrom (secrets, config maps). Defined by the chart. |
extraEnvVars | List of K8s env objects | Additional variables appended after envVars. |
Override Precedence
Bootstrap Configuration
On first startup, the platform bootstraps a default organization:The
organizationId must contain only alphanumeric characters, hyphens, or underscores.Production Values File
Below is a sampleproduction-values.yaml:
Install with Production Values
Testing
The chart includes a Helm test hook that runs end-to-end tests:Backups
Back up these components together for a consistent restore:| Component | Contains | Backup Method |
|---|---|---|
| PostgreSQL | All service data | pg_dumpall or cloud snapshots |
| Redis | Session and cache data | redis-cli BGSAVE or cloud snapshots |
| em-runtime-secrets | All platform credentials | kubectl get secret em-runtime-secrets -o yaml |
| infisical-bootstrap-secret | Machine identity token (if using Infisical) | kubectl get secret infisical-bootstrap-secret -o yaml |
| Assets storage | Uploaded/generated artifacts | VolumeSnapshots or S3 bucket backup |
Next Steps
Values Reference
Complete reference for all Helm chart values.
Upgrades
Version upgrades, migration steps, and rollback procedures.
OpenTelemetry
Configure telemetry for all runtime services.

