Deploying with Kubernetes (Helm)
Relevant source files
The following files were used as context for generating this wiki page:
- charts/budibase/README.md
- charts/budibase/values.yaml
- charts/budibase/templates/app-service-deployment.yaml
- charts/budibase/templates/proxy-service-deployment.yaml
- charts/budibase/templates/worker-service-deployment.yaml
- charts/budibase/templates/automation-worker-service-deployment.yaml
- charts/budibase/templates/litellm-service-deployment.yaml
The Budibase Helm chart provides a configurable method for deploying the Budibase low-code platform onto a Kubernetes cluster. It manages the deployment of all necessary Budibase services, their dependencies, and the required Kubernetes resources like Deployments, Services, and Ingress. This allows for a scalable and manageable self-hosted Budibase instance.
This chart simplifies the process of setting up a production-ready Budibase environment, handling the orchestration of microservices, database connections, and external access. It is designed to be idiomatic and leverages a dependency on the official Apache CouchDB chart for database management.
Sources: charts/budibase/README.md:1-29, README.md:82-87
Prerequisites
Before installing the Budibase Helm chart, ensure the following components are available in your Kubernetes cluster:
helmv3 or newer- Kubernetes 1.4+
- A storage controller for persistent storage
- An ingress controller if you plan to use an
Ingressresource metrics-serverif you intend to use Horizontal Pod Autoscaling (HPA)
Sources: charts/budibase/README.md:7-13
Architecture
The Helm chart deploys a multi-service architecture. A central proxy-service acts as the main entry point, routing traffic to the appropriate backend services. The core application logic is split between the app-service, worker-service, and an optional automation-worker-service. The deployment also includes stateful services for data persistence: CouchDB, Redis, and an object store (MinIO by default).
Sources: charts/budibase/values.yaml:126-398, charts/budibase/templates/proxy-service-deployment.yaml
The following diagram illustrates the high-level architecture and data flow between the components deployed by the Helm chart.
Core Services
The Budibase platform is composed of several microservices, each deployed as a separate Kubernetes Deployment.
Proxy Service
The proxy-service is the main entry point for all HTTP traffic. It is an OpenResty-based proxy that routes requests to the appropriate backend services based on the URL path.
- Image:
budibase/proxy - Default Port:
10000 - Key Responsibilities:
- Routes API and builder traffic to
app-service. - Routes worker traffic to
worker-service. - Routes object storage traffic to
minio-service. - Routes database traffic to
couchdb. - Can be configured for rate limiting on webhooks and API endpoints.
- Routes API and builder traffic to
Sources: charts/budibase/templates/proxy-service-deployment.yaml, charts/budibase/values.yaml:126-135, 148-153
App Service
The app-service is the main backend service that handles most of the core Budibase logic, including API requests and serving the builder interface. If the automation-worker-service is disabled, this service also processes automations.
- Image:
budibase/apps - Default Port:
4002 - Environment Variable
APP_FEATURES: If automation workers are enabled, this is set to"api", indicating it should only handle API tasks. - Key Environment Variables:
COUCH_DB_URL,REDIS_URL,MINIO_URL,INTERNAL_API_KEY,JWT_SECRET.
Sources: charts/budibase/templates/app-service-deployment.yaml, charts/budibase/values.yaml:191-193, 313-314
Worker Service
The worker-service handles background tasks, including running queries against external datasources and other long-running jobs.
- Image:
budibase/worker - Default Port:
4003 - Key Environment Variables:
COUCH_DB_URL,REDIS_URL,MINIO_URL,APPS_URL.
Sources: charts/budibase/templates/worker-service-deployment.yaml, charts/budibase/values.yaml:316-318
Automation Worker Service
This is an optional, specialized service dedicated to processing automations. It can be enabled to offload automation workloads from the main app-service.
- Enabled by default:
true(services.automationWorkers.enabled) - Image:
budibase/apps(same as app-service) - Environment Variable
APP_FEATURES: Set to"automations"to specify its role. - Default Port:
4002
Sources: charts/budibase/templates/automation-worker-service-deployment.yaml, charts/budibase/values.yaml:254-255, 309-310
LiteLLM Service
An optional service that provides a gateway for Large Language Model (LLM) interactions.
- Enabled by default:
false(services.litellm.enabled) - Image:
ghcr.io/berriai/litellm:main-latest - Default Port:
4000 - Configuration: Managed via a
ConfigMapfromservices.litellm.configinvalues.yaml.
Sources: charts/budibase/templates/litellm-service-deployment.yaml, charts/budibase/values.yaml:400-418
Dependencies
The chart manages several stateful dependencies required for Budibase to function.
| Dependency | Default Implementation | Purpose | Configuration |
|---|---|---|---|
| Database | Apache CouchDB | Primary data store for apps, users, and configurations. | couchdb.* |
| Cache/Queue | Redis | Used for session management and as a message queue for background jobs. | services.redis.* |
| Object Storage | MinIO | Stores application assets, attachments, and backups. | services.objectStore.* |
Sources: charts/budibase/README.md:15-18, charts/budibase/values.yaml:358-364, 381-383, 420-427
A custom budibase/couchdb image is used, which includes extensions like Clouseau for search functionality. It is not recommended to change this image.
Sources: charts/budibase/values.yaml:498-504
Configuration
The deployment is configured through the values.yaml file. Below are some of the key configuration sections.
Global Settings
These settings apply to multiple services within the deployment.
| Key | Default | Description |
|---|---|---|
globals.appVersion | Chart AppVersion | The version of Budibase images to deploy. |
globals.createSecrets | true | If true, automatically generates and stores secrets for API keys and JWT. |
globals.internalApiKey | "" | API key for internal service-to-service communication. |
globals.jwtSecret | "" | Secret for signing JSON Web Tokens. |
globals.platformUrl | "" | The public-facing URL of your Budibase installation. |
globals.smtp.enabled | false | Enables SMTP for sending emails. |
Sources: charts/budibase/values.yaml:62-124, charts/budibase/README.md:73-103
Ingress Configuration
Controls how Budibase is exposed to the outside world.
| Key | Default | Description |
|---|---|---|
ingress.enabled | true | Creates a standard Kubernetes Ingress resource. |
ingress.className | "" | Specifies the ingressClassName for the Ingress resource. |
ingress.hosts | [] | A list of host rules for the Ingress. |
awsAlbIngress.enabled | false | Creates an AWS-specific Ingress for an Application Load Balancer. |
awsAlbIngress.certificateArn | "" | The ARN of an ACM certificate for HTTPS on an AWS ALB. |
Sources: charts/budibase/values.yaml:29-50, charts/budibase/README.md:57-60, 110-113
Service Configuration
Each core service (proxy, apps, worker, automationWorkers) has its own configuration block under services.*. Common options include:
| Key | Description |
|---|---|
replicaCount | The number of pods to run for the service. |
resources | CPU/Memory resource requests and limits for the service's pods. |
autoscaling.enabled | Enables Horizontal Pod Autoscaling for the service. |
extraEnv | A list of additional environment variables to set in the container. |
livenessProbe, readinessProbe, startupProbe | Health check configurations for the service pods. |
Sources: charts/budibase/values.yaml:126-356, charts/budibase/README.md:154-287
Example Minimal Configuration
This example shows a minimal values.yaml for a deployment using an nginx ingress controller and persistent storage.
ingress:
enabled: true
className: "nginx"
hosts:
- host: budibase.local # set this to whatever DNS name you'd use
paths:
- backend:
service:
name: proxy-service
port:
number: 10000
path: /
pathType: Prefix
couchdb:
persistentVolume:
enabled: true
storageClass: "nfs-client"
adminPassword: admin
services:
objectStore:
storageClass: "nfs-client"
redis:
storageClass: "nfs-client"
Sources: charts/budibase/README.md:38-66
Autoscaling
The Helm chart supports Horizontal Pod Autoscaling (HPA) for the proxy, apps, and worker services. Each service has a dedicated autoscaling configuration block.
To enable autoscaling, you must:
- Set
services.<service-name>.autoscaling.enabledtotrue. - Have
metrics-serverinstalled and running in your cluster. - Define resource requests (at least CPU) for the target service's pods under
services.<service-name>.resources.
Example HPA configuration for the apps service:
services:
apps:
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 80
resources:
requests:
cpu: "500m"
memory: "512Mi"
Sources: charts/budibase/README.md:61-64, 154-159, charts/budibase/values.yaml:180-187, 243-250, 301-308