ilum-mageai packaged by ilum
TL;DR
$ helm repo add ilum https://charts.ilum.cloud
$ helm install ilum-mageai ilum/ilum-mageai
Introduction
This chart deploys Mage on a Kubernetes cluster using the Helm package manager. Mage is a modern replacement for Airflow that provides a comprehensive platform for building, running, and managing data pipelines with an intuitive interface.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure (if persistence is enabled)
Installing the Chart
To install the chart with the release name ilum-mageai:
$ helm install ilum-mageai ilum/ilum-mageai
The command deploys Mage AI on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using helm list
Uninstalling the Chart
To uninstall/delete the ilum-mageai deployment:
$ helm delete ilum-mageai
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration and Installation Details
Deployment Modes
The chart supports two deployment modes:
- Standalone Mode (default): Single deployment with combined web server and scheduler
- Standalone Scheduler Mode: Separate deployments for web server and scheduler for better scalability
To enable standalone scheduler mode:
standaloneScheduler: true
Database Configuration
Mage AI can be configured with PostgreSQL as the backend database:
postgresql:
enabled: true # Enables PostgreSQL support in Mage
deploy: true # Deploy PostgreSQL instance
auth:
username: mage_user
password: mage_password
database: mage_db
Read more at the site of the PostgreSQL subchart: PostgreSQL Helm Chart
Redis Configuration
For multi-replica deployments, Redis can be enabled for caching and task queuing:
redis:
enabled: true
architecture: standalone
auth:
enabled: false
Read more at the site of the Redis subchart: Redis Helm Chart
Persistence
By default, the chart creates a PersistentVolumeClaim for storing Mage AI projects and data:
persistence:
enabled: true
storageClassName: ""
size: 5Gi
Custom Configuration
Environment variables can be passed to Mage AI using the config and secrets sections:
config:
MAGE_DATABASE_CONNECTION_URL: "postgresql://user:password@host:port/database"
secrets:
SECRET_KEY: "your-secret-key"
Parameters
Global parameters
| Name | Description | Value |
replicaCount | Number of Mage AI replicas | 1 |
standaloneScheduler | Enable standalone scheduler deployment mode | false |
rootPath | Root path of the server (e.g., "mage" for http://localhost:6789/mage) | "" |
Scheduler parameters
| Name | Description | Value |
scheduler.replicaCount | Number of scheduler replicas | 1 |
scheduler.name | Name for scheduler deployment | mageai-scheduler |
scheduler.resources | Resource limits and requests for scheduler | {} |
Web Server parameters
| Name | Description | Value |
webServer.replicaCount | Number of web server replicas | 1 |
webServer.name | Name for web server deployment | mageai-webserver |
webServer.resources | Resource limits and requests for web server | {} |
PostgreSQL parameters
| Name | Description | Value |
postgresql.enabled | Enable PostgreSQL support in Mage | false |
postgresql.deploy | Deploy PostgreSQL instance | false |
postgresql.fullnameOverride | Override PostgreSQL fullname | postgresql-service |
postgresql.auth.username | PostgreSQL username | your_username |
postgresql.auth.password | PostgreSQL password | your_password |
postgresql.auth.database | PostgreSQL database name | your_database |
Redis parameters
| Name | Description | Value |
redis.enabled | Enable Redis subchart | false |
redis.architecture | Redis architecture | standalone |
redis.auth.enabled | Enable Redis authentication | false |
redis.customRedisURL | Custom Redis URL (make sure redis.enabled is false) | "" |
Image parameters
| Name | Description | Value |
image.repository | Mage AI image repository | mageai/mageai |
image.pullPolicy | Image pull policy (Always, IfNotPresent, Never) | Always |
image.tag | Image tag (overrides the chart appVersion) | "" |
imagePullSecrets | List of image pull secrets for private registries | [] |
Init Container Images
| Name | Description | Value |
initContainerImages.alpine | Alpine image for Redis readiness check | alpine |
initContainerImages.busybox | BusyBox image for PostgreSQL readiness check | busybox |
Common parameters
| Name | Description | Value |
nameOverride | String to partially override mageai.fullname | mageai |
fullnameOverride | String to fully override mageai.fullname | mageai |
Service Account parameters
| Name | Description | Value |
serviceAccount.create | Specifies whether a service account should be created | true |
serviceAccount.annotations | Annotations to add to the service account | {} |
serviceAccount.name | The name of the service account to use | mageai |
Pod parameters
| Name | Description | Value |
podAnnotations | Annotations for Mage AI pods | {} |
podLabels | Extra labels for Mage AI pods | {} |
podSecurityContext | Security context for the Mage AI pod(s) | {} |
securityContext | Security context for the Mage AI container(s) | {} |
Service parameters
| Name | Description | Value |
service.type | Kubernetes service type | LoadBalancer |
service.port | Service port | 6789 |
service.annotations | Service annotations | {} |
Probe parameters
| Name | Description | Value |
livenessProbe.enabled | Enable liveness probe | true |
livenessProbe.path | Liveness probe HTTP path | /api/status |
livenessProbe.port | Liveness probe port | http |
livenessProbe.initialDelaySeconds | Initial delay seconds for liveness probe | 5 |
livenessProbe.timeoutSeconds | Timeout seconds for liveness probe | 10 |
readinessProbe.enabled | Enable readiness probe | true |
readinessProbe.path | Readiness probe HTTP path | /api/status |
readinessProbe.port | Readiness probe port | http |
readinessProbe.initialDelaySeconds | Initial delay seconds for readiness probe | 5 |
readinessProbe.timeoutSeconds | Timeout seconds for readiness probe | 1 |
customLivenessProbe | Custom liveness probe configuration | {} |
customReadinessProbe | Custom readiness probe configuration | {} |
Ingress parameters
| Name | Description | Value |
ingress.enabled | Enable ingress record generation | false |
ingress.className | IngressClass that will be used | "" |
ingress.annotations | Additional annotations for the Ingress | {} |
ingress.hosts | Ingress hosts configuration | {} |
ingress.tls | Ingress TLS configuration | [] |
Resource parameters
| Name | Description | Value |
resources | Resource limits and requests for the Mage AI container | {} |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Tolerations for pod assignment | [] |
affinity | Affinity for pod assignment | {} |
Volume parameters
| Name | Description | Value |
extraVolumeMounts | Additional volume mounts for the Mage AI container | [] |
extraVolumes | Additional volumes for the Mage AI pod | [] |
Persistence parameters
| Name | Description | Value |
persistence.enabled | Enable persistence using PVC | true |
persistence.storageClassName | Storage class name | nil |
persistence.size | PVC size | 5Gi |
persistence.dynamicProvisioning | Enable dynamic provisioning | true |
Configuration parameters
| Name | Description | Value |
config | Environment variables configuration injected directly in the container | {} |
existingSecret | Name of existing secret for environment variables | "" |
secrets | Secret environment variables injected directly in the container | {} |
extraEnvs | Extra environment variables | {} |
Cleanup Job parameters
| Name | Description | Value |
cleanupJob.enabled | Enable cleanup cron job | false |
cleanupJob.clean_variable_cli_args | CLI arguments for variable cleanup | "" |
cleanupJob.clean_log_cli_args | CLI arguments for log cleanup | "" |
cleanupJob.schedule_cron | Cron schedule for cleanup job | 0 * * * * |
Examples
Basic Installation
helm install mageai ilum/ilum-mageai
Installation with PostgreSQL
helm install mageai ilum/ilum-mageai \
--set postgresql.enabled=true \
--set postgresql.deploy=true \
--set postgresql.auth.username=mage \
--set postgresql.auth.password=magepassword \
--set postgresql.auth.database=mage
Installation with Custom Values
# values.yaml
replicaCount: 2
standaloneScheduler: true
postgresql:
enabled: true
deploy: true
auth:
username: mage_user
password: secure_password
database: mage_production
redis:
enabled: true
auth:
enabled: true
password: redis_password
persistence:
size: 20Gi
storageClassName: fast-ssd
ingress:
enabled: true
className: nginx
hosts:
- host: mage.example.com
paths:
- path: /
pathType: Prefix
resources:
requests:
memory: "512Mi"
cpu