alquimia-studio

by joaquinito2051

Helm chartv0.2.0App 1.0.0

Alquimia Studio – front/app service for Alquimia Platform.

About this chart

Alquimia Studio Helm Chart

A production-ready Helm chart to deploy Alquimia Studio (web/Next.js app) on Kubernetes and OpenShift, following Red Hat chart certification best practices (non-root, probes, resources, labels, tests).

Alquimia Studio is an enterprise-ready, no-code platform for building, deploying, and managing conversational AI agents on your own infrastructure. It supports knowledge-powered and multi-agent systems with tool integrations, giving teams full control over data, security, and extensibility.

Whether you're building customer support automation, internal knowledge assistants, or complex multi-agent systems, Alquimia Studio provides an intuitive wizard-driven interface that transforms your requirements into production-ready conversational agents.

Prerequisites

Before installing Alquimia Studio, ensure you have the following components available:

  • Alquimia Runtime
  • MongoDB instance
  • Keycloak
  • Alquimia TWYD
  • Open Telemetry collector for sending metrics and traces (optional)
  • Metrics service compatible with PromptQL

Installation

1) Basic install (Service only)

helm install studio ./alquimia-studio \
  --set image.repository=alquimiaai/studio \
  --set image.tag=latest

2) With Kubernetes Ingress

helm install studio ./alquimia-studio \
  --set ingress.enabled=true \
  --set ingress.hosts[0].host=studio.example.com

3) On OpenShift with Route (recommended on OCP)

helm install studio ./alquimia-studio \
  --set openshift.route.enabled=true \
  --set openshift.route.host=studio.apps.example.openshift.com

If both ingress.enabled and openshift.route.enabled are set, the chart prefers Ingress and skips Route.

Upgrading

helm upgrade studio ./alquimia-studio --set image.tag=v1.2.3

Uninstall

helm uninstall studio

Configuration

Using existing ConfigMap/Secret If you already have alquimia-studio-config and alquimia-studio-secrets:

envFrom:
  existingConfigMap: "alquimia-studio-config"
  existingSecret: "alquimia-studio-secrets"
createConfig:
  enabled: false
createSecret:
  enabled: false

Creating ConfigMap/Secret with the chart

createConfig:
  enabled: true
  config:
    NEXT_PUBLIC_API_URL: "https://api.example.com"

createSecret:
  enabled: true
  stringData:
    OPENAI_API_KEY: "xxxxx"

envFrom:
  existingConfigMap: ""
  existingSecret: ""

Apply with:

helm install studio ./alquimia-studio -f values.yaml

Setting up environment variables

The following environment variables must be configured for Alquimia Studio to function properly. Set these in your Helm values or ConfigMap/Secret:

# Alquimia Runtime Configuration
# Base URL for the Alquimia Runtime API (assistant service)
ASSISTANT_BASEURL=https://assistant-api-url

# API key for authenticating requests to Alquimia Runtime
ALQUIMIA_ASSISTANT_API_KEY=assistant-api-key

# Alquimia TWYD Configuration (Knowledge Base Service)
# Base URL for the TWYD knowledge base service
TWYD_BASEURL=https://twyd-url/

# API key for authenticating requests to TWYD service
TWYD_API_KEY=twyd-api-key

# Database Configuration
# MongoDB connection string (Atlas or self-hosted)
DATABASE_URL="mongodb+srv://username:[email protected]/database?retryWrites=true&w=majority&appName=alquimia-studio"

# Authentication Configuration (Keycloak)

# Keycloak client ID registered in your Keycloak realm
AUTH_KEYCLOAK_ID=keycloak-client-id
# Keycloak client secret for authentication
AUTH_KEYCLOAK_SECRET=keycloak-client-secret
# Keycloak issuer URL (realm endpoint)
AUTH_KEYCLOAK_ISSUER=https://keycloak-domain/auth/realms/realm

# NextAuth.js Configuration
# Secret key for encrypting NextAuth.js tokens and sessions
NEXTAUTH_SECRET="nextauth-secret-key"

# Public URL where your application is accessible
NEXTAUTH_URL=http://localhost:3000

# Authentication provider method
# Options: "api_token" (uses ALQUIMIA_ASSISTANT_API_KEY) or "keycloak" (uses Keycloak OAuth)
AUTH_PROVIDER=api_token

# OpenTelemetry Configuration (Optional)
# Service name identifier for OpenTelemetry traces and metrics
# Used to identify this service in your observability platform
OTEL_ALQUIMIA_SERVICE_NAME=alquimia-studio-app.prod.op

# OpenTelemetry collector endpoint for sending traces
OTEL_COLLECTOR_ENDPOINT_TRACES=https://otel-endpoint-url/tracing

# OpenTelemetry collector endpoint for sending metrics
OTEL_COLLECTOR_ENDPOINT=https://otel-endpoint-url/metrics

# Export interval for metrics in milliseconds
OTEL_EXPORTER_INTERNAL_MILIS=5000

# Metrics Dashboard Configuration
# Base URL for the metrics API used to fetch data for dashboard visualization
# Compatible with Prometheus/Thanos query API endpoints
METRICS_API_URL=https://metrics-url/api/
# API token for authenticating requests to the metrics API
METRICS_API_TOKEN=metrics-api-token

Security

This chart follows container hardening best practices:

  • runAsNonRoot: true
  • readOnlyRootFilesystem: true
  • allowPrivilegeEscalation: false
  • Drop all Linux capabilities

If your app needs write access (e.g., cache), mount an emptyDir at the required path or extend the chart to add a writable volume.

Network Policy (opt-in)

Restrict inbound traffic to the service namespace (or specific namespaces):

networkPolicy:
  enabled: true
  ingressNamespaces: []  # same-namespace only

Parameters

KeyTypeDefaultDescription
replicaCountint1Number of replicas
image.repositorystringalquimiaai/studioImage repo
image.tagstringalquimiaai/studioImage tag (pin via CI/CD)
image.pullPolicystringIfNotPresentPull policy
image.pullSecretslist[]ImagePullSecrets names
service.typestringClusterIPService type
service.portint80Service port
service.targetPortint3000Container port
ingress.enabledboolfalseEnable Ingress
ingress.classNamestring""IngressClass name
ingress.hosts[0].hoststringstudio.example.comHostname
ingress.tlslist[]TLS entries for hosts
openshift.route.enabledbooltrueEnable OpenShift Route
openshift.route.hoststring""Route host (optional)
openshift.route.tls.enabledbooltrueTLS on Route
resources.requests.cpustring100mCPU request
resources.requests.memorystring256MiMemory request
resources.limits.cpustring500mCPU limit
resources.limits.memorystring512MiMemory limit
env.varslist[]Inline environment variables
envFrom.existingConfigMapstring"alquimia-studio-config"Use existing CM
envFrom.existingSecretstring"alquimia-studio-secrets"Use existing Secret
createConfig.enabledboolfalseCreate CM from values
createConfig.configmap{}Key/values for CM
createSecret.enabledboolfalseCreate Secret from values
createSecret.stringDatamap{}Secret key/values
serviceAccount.createbooltrueCreate ServiceAccount
podSecurityContextmapsee valuesPod security context
containerSecurityContextmapsee valuesContainer security context
nodeSelector / tolerations / affinity{}1Scheduling controls
networkPolicy.enabledbooltrueEnable NetworkPolicy

Example values.yaml

image:
  repository: alquimiaai/studio
  tag: "stable"
  pullPolicy: IfNotPresent

openshift:
  route:
    enabled: true
    host: studio.apps.dev.example.com
    tls:
      enabled: true
      termination: edge
      insecureEdgeTerminationPolicy: Redirect

envFrom:
  existingConfigMap: "alquimia-studio-config"
  existingSecret: "alquimia-studio-secrets"

resources:
  requests:
    cpu: 200m
    memory: 256Mi
  limits:
    cpu: "1"
    memory: 512Mi

Notes for OpenShift

  • Prefer Route over Ingress (openshift.route.enabled: true).
  • Ensure the default SCC allows runAsNonRoot. If your cluster injects a random UID, this chart already sets non-root compatible options.
  • For TLS, you can attach a custom cert to the Route or rely on router defaults.

Maintainers

Deploy alquimia-studio with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has alquimia-studio 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 chartalquimia-studio is pinned at v0.2.0 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