galust-ai-layer
by Das Meta
Galust AI layer umbrella chart for Kubernetes clusters
About this chart
Galust AI Layer
Umbrella Helm chart for deploying the Galust AI layer stack into a Kubernetes or EKS cluster.
What This Chart Deploys
This chart is an umbrella chart for the Galust AI layer services. It wraps the published dasmeta/base chart once per component and deploys:
- Strapi backend
- MCP
- MCP products service
- Orchestrator
- Orchestrator scheduler
- Frontend
- Redis (OAuth store)
The chart manages Kubernetes workload configuration for these services. It does not provision cloud infrastructure, databases, DNS records, TLS issuers, IAM roles, ECR policies, or external secrets.
In-cluster Service names are {release}-{component} (for example ai-layer-backend when the Helm release is ai-layer). MCP, MCP products, orchestrator, and scheduler load OpenAPI, Redis, and sibling URLs from ConfigMap galust-incluster-urls using those short names (same-namespace DNS). Kubernetes Secret names such as ai-layer-strapi stay as configured.
Components
The chart wraps the published dasmeta/base chart with one alias per deployable component (backend uses TrueCharts strapi):
| Component | Values key | Default |
|---|---|---|
| Strapi backend | backend.enabled | true |
| MCP | mcp.enabled | true |
| MCP products service | mcpProducts.enabled | true |
| Orchestrator | orchestrator.enabled | true |
| Orchestrator scheduler | orchestratorScheduler.enabled | true |
| Frontend | frontend.enabled | true |
| Redis | redis.enabled | true |
Each component can be disabled independently:
helm upgrade --install galust-ai-layer ./charts/galust-ai-layer \
-n ai-layer \
--create-namespace \
--set orchestratorScheduler.enabled=false
Prerequisites
Before deploying, confirm the target cluster has:
- Kubernetes access through a working
kubectlcontext. - Helm 3 installed locally.
- Access to the
dasmetaHelm repository, because this chart depends ondasmeta/base. - AWS access to the target account, usually through an AWS SSO permission set and account assignment managed outside this chart.
- Namespace access for
ai-layer, or permission to create it. - Image pull access for the private ECR images.
- ECR read access for the private repositories used by the backend, MCP, MCP products, orchestrator and frontend images.
- Required application secrets already created in the namespace.
- Database connectivity for the backend.
- A PVC or storage class suitable for backend uploads.
- Ingress controller installed if ingress is enabled.
- DNS records pointing the public hosts to the ingress/load balancer.
- TLS/cert-manager setup if the default TLS annotations and secrets are used.
If AWS access is managed through the Terraform SSO/RBAC modules, create or assign an AWS SSO permission set before deploying this chart. The permission set should allow the operator or automation role to:
- Read private ECR repositories and get ECR authorization tokens.
- Access the target EKS cluster and update Kubernetes resources in the
ai-layernamespace. - Create or update Kubernetes Secrets used by the chart, including
ecr-secret,ai-layer-strapi,db-ai-layer-strapi,ai-layer-mcp,ai-layer-mcp-products,ai-layer-orchestrator(shared by API orchestrator and scheduler) andai-layer-orchestrator-scheduler(scheduler only). - If
ecrCredentialsRefresh.enabled=true, provide an AWS identity for the refresh job withecr:GetAuthorizationToken.
Required default Kubernetes objects:
| Object | Default name | Used by |
|---|---|---|
| Docker registry pull secret | ecr-secret | all components |
| Backend app secret | ai-layer-strapi | backend |
| Backend DB host secret | db-ai-layer-strapi, key host | backend |
| Backend DB port | backend.config.DATABASE_PORT, default 5432 | backend |
| Backend DB password secret | db-ai-layer-strapi, key password | backend |
| Backend uploads PVC | ai-layer-strapi-uploads | backend |
| MCP secret | ai-layer-mcp | MCP |
| MCP products secret | ai-layer-mcp-products | MCP products |
| Orchestrator secret | ai-layer-orchestrator | orchestrator and orchestrator scheduler |
| Scheduler credential secret | ai-layer-orchestrator-scheduler, key SCHEDULER_INTERNAL_TOKEN | orchestrator scheduler (same value as SCHEDULER_INTERNAL_TOKEN in ai-layer-strapi) |
External dependencies such as Qdrant, Langfuse, OpenAI credentials, database provisioning, External Secrets, IAM trust, and DNS are handled outside this chart. Redis is included (redis.enabled=true). To use an existing Redis instead:
redis:
enabled: false
externalUrl: redis://redis:6379/0
Orchestrator Secret
The orchestrator reads sensitive values from a Kubernetes Secret through envFrom.secret.
Default values:
orchestrator:
envFrom:
secret: ai-layer-orchestrator
This means every key in the ai-layer-orchestrator Secret is exposed to the orchestrator container as an environment variable. The default secret should contain:
| Secret key | Purpose |
|---|---|
OPENAI_API_KEY | OpenAI API access |
LANGFUSE_PUBLIC_KEY | Langfuse public key |
LANGFUSE_SECRET_KEY | Langfuse secret key |
CLOUDBROWSER_API_TOKEN | Cloud browser access |
FIRECRAWL_API_KEY | Firecrawl API access |
SENTRY_DSN | Sentry project DSN |
AI_LAYER_BACKEND_API_TOKEN | Backend API token (same value as Strapi/mcp-products) |
CORE_PRODUCT_UID | Platform Core product UID |
SUPPORT_CHAT_CORE_PRODUCT_UID | Support chat core product UID (optional) |
The same secret is mounted by orchestratorScheduler via envFrom.secret.
Evaluation execution uses EVALUATION_JUDGE_USE_CASE_ID (the Strapi document id of the Core evaluation-result-judge use case), not a model name. Chart defaults leave it empty; set it per environment. Langfuse v5 also needs LANGFUSE_BASE_URL on both orchestrator workloads; it defaults next to LANGFUSE_HOST.
Create or update the secret before deploying:
kubectl create secret generic ai-layer-orchestrator \
-n ai-layer \
--from-literal=OPENAI_API_KEY='<openai-api-key>' \
--from-literal=LANGFUSE_PUBLIC_KEY='<langfuse-public-key>' \
--from-literal=LANGFUSE_SECRET_KEY='<langfuse-secret-key>' \
--from-literal=CLOUDBROWSER_API_TOKEN='<cloudbrowser-api-token>' \
--from-literal=FIRECRAWL_API_KEY='<firecrawl-api-key>' \
--from-literal=SENTRY_DSN='<sentry-dsn>' \
--from-literal=AI_LAYER_BACKEND_API_TOKEN='<backend-api-token>' \
--from-literal=CORE_PRODUCT_UID='<core-product-uid>' \
--from-literal=SUPPORT_CHAT_CORE_PRODUCT_UID='<support-chat-core-product-uid>' \
--dry-run=client -o yaml | kubectl apply -f -
Use a different secret name if needed:
helm upgrade --install galust-ai-layer charts/galust-ai-layer \
-n ai-layer \
--create-namespace \
--set orchestrator.envFrom.secret=my-orchestrator-secret
Configure Public URLs
Public URLs are defined near the top of values.yaml:
global:
API_URL: &apiUrl https://api.galust.ai
API_HOST: &apiHost api.galust.ai
APP_URL: &appUrl https://app.galust.ai
MCP_URL: &mcpUrl https://mcp.galust.ai
MCP_HOST: &mcpHost mcp.galust.ai
MCP_PRODUCTS_URL: &mcpProductsUrl https://mcp-products.galust.ai
MCP_PRODUCTS_HOST: &mcpProductsHost mcp-products.galust.ai
ADMIN_URL: &adminUrl https://api.galust.ai/admin
OPENAPI_BASE_URL: &openapiBaseUrl https://api.galust.ai/api
OPENAPI_SPEC_URL: &openapiSpecUrl https://api.galust.ai/documentation/openapi.json
ORCHESTRATOR_ENDPOINT: &orchestratorEndpoint https://api.galust.ai/orchestrator/api/galust/ask
ORCHESTRATOR_SSE_URL: &orchestratorSseUrl https://api.galust.ai/orchestrator/galust/ask/sse
ORCHESTRATOR_SUPPORT_SSE_URL: &orchestratorSupportSseUrl https://api.galust.ai/orchestrator/galust/support/sse
The rest of values.yaml reuses these values with YAML anchors, for example:
backend:
config:
ADMIN_URL: *adminUrl
BACKEND_URL: *apiUrl
ingress:
hosts:
- host: *apiHost
frontend:
config:
VITE_GALUST_API_BASE_URL: *openapiBaseUrl
VITE_GALUST_ORCHESTRATOR_SSE_URL: *orchestratorSseUrl
VITE_GALUST_ORCHESTRATOR_SUPPORT_SSE_URL: *orchestratorSupportSseUrl
Important: YAML anchors are resolved before Helm merges extra values files. If you deploy with -f examples/galust-ai-layer/values.test.yaml and only override global, Helm will not recalculate aliases already resolved in values.yaml. To change domains for another environment, either edit the full values file or provide a values file that also overrides the component config and ingress fields.
Image Pull Access
The default values expect an existing Kubernetes docker registry secret named ecr-secret. The secret name is anchored once and reused by every component:
imagePullSecret:
name: &imagePullSecretName ecr-secret
imagePullSecrets:
- name: *imagePullSecretName
The chart can also render the secret when imagePullSecret.create=true:
helm upgrade --install galust-ai-layer ./charts/galust-ai-layer \
-n ai-layer \
--create-namespace \
--set imagePullSecret.create=true \
--set-file imagePullSecret.dockerConfigJson=./dockerconfig.json
AWS IAM trust, ECR repository policies, role assumption, and External Secrets setup are intentionally outside this chart. Provide the resulting Kubernetes pull secret name through imagePullSecret.name and each component's imagePullSecrets override.
ECR authorization tokens expire. For long-running environments, enable the optional refresh CronJob or use another cluster-managed renewal mechanism such as External Secrets, a registry credential controller, or a platform-owned refresh job. This chart can reference an existing pull secret, render one from provided docker config JSON, or refresh the secret through the optional CronJob.
Example secret creation:
kubectl create namespace ai-layer
kubectl create secret docker-registry ecr-secret \
-n ai-layer \
--docker-server=565580475168.dkr.ecr.eu-central-1.amazonaws.com \
--docker-username=AWS \
--docker-password='<ecr-login-password>'
ECR Credentials Refresh
The chart can render an optional CronJob that refreshes the ECR docker registry secret before the token expires:
ecrCredentialsRefresh:
enabled: true
schedule: "0 */6 * * *"
registry: 565580475168.dkr.ecr.eu-central-1.amazonaws.com
region: eu-central-1
secretName: ecr-secret
The refresh job updates the same kubernetes.io/dockerconfigjson Secret referenced by component imagePullSecrets. It creates a namespaced Role, RoleBinding, ServiceAccount, and CronJob.
Use an existing Kubernetes Secret with AWS credentials:
kubectl create secret generic ecr-refresh-aws-credentials \
-n ai-layer \
--from-literal=AWS_ACCESS_KEY_ID='<aws-access-key-id>' \
--from-literal=AWS_SECRET_ACCESS_KEY='<aws-secret-access-key>' \
--dry-run=client -o yaml | kubectl apply -f -
Then enable the refresher:
helm upgrade --install galust-ai-layer charts/galust-ai-layer \
-n ai-layer \
--create-namespace \
--set ecrCredentialsRefresh.enabled=true \
--set ecrCredentialsRefresh.awsCredentialsSecret.name=ecr-refresh-aws-credentials
If the cluster uses IRSA or EKS Pod Identity, leave awsCredentialsSecret.name empty and annotate the refresh service account:
ecrCredentialsRefresh:
enabled: true
serviceAccount:
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::<account-id>:role/<role-name>
The AWS identity used by the refresh job needs permission to call ecr:GetAuthorizationToken. The refresh container uses alpine and installs aws-cli, curl, ca-certificates, and coreutils at runtime, so the namespace must allow outbound package download access or you must override ecrCredentialsRefresh.image with an internal image that already contains the required tools.
After installing, trigger the first refresh before private-image workloads need to pull:
kubectl create job \
-n ai-layer \
--from=cronjob/galust-ai-layer-ecr-refresh \
galust-ai-layer-ecr-refresh-manual
MCP products (stateless)
mcp-products on current ai-layer main uses stateless Streamable HTTP, so any healthy replica can serve a request. Defaults:
mcpProducts:
service:
sessionAffinity: None
Do not re-enable ClientIP affinity or ingress upstream-hash-by: $remote_addr unless you deliberately run an older stateful image.
Core MCP (mcp) remains stateful and still pins external traffic with ingress upstream-hash-by: $http_mcp_session_id.
Orchestrator → MCP traffic should keep using in-cluster URLs from ConfigMap galust-incluster-urls (MCP_CORE_BASE_URL / MCP_PRODUCTS_BASE_URL).
Scheduler Credential
Since ai-layer DEV-2338, scheduled triggers use their own credential, SCHEDULER_INTERNAL_TOKEN:
- The backend accepts scheduled-trigger operations only with this token. It reads the token from secret
ai-layer-strapi, through the existingenvFrom. Without the key, it refuses those operations. - The orchestrator scheduler reads it from its own secret,
ai-layer-orchestrator-scheduler, so the API orchestrator never holds it (orchestratorScheduler.secrets). It won't start triggers without it whileSCHEDULED_TRIGGERS_ENABLEDis"true", and the pod won't start if the secret is missing.
Use one random value of at least 64 characters for both, and create both secrets before upgrading:
TOKEN="$(openssl rand -hex 32)"
kubectl -n ai-layer create secret generic ai-layer-orchestrator-scheduler \
--from-literal=SCHEDULER_INTERNAL_TOKEN="$TOKEN" \
--dry-run=client -o yaml | kubectl apply -f -
# Add the same key to the existing backend secret, keeping its other keys:
kubectl -n ai-layer patch secret ai-layer-strapi --type merge \
-p "{\"stringData\":{\"SCHEDULER_INTERNAL_TOKEN\":\"$TOKEN\"}}"
unset TOKEN
Clusters that run with
Deploy galust-ai-layer with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has galust-ai-layer 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgalust-ai-layer is pinned at v0.2.8 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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