Self-Hosted Installation
Massdriver Self-Hosted installs with a Helm chart.
Prerequisites​
Infrastructure Requirements​
- Kubernetes cluster running version 1.25 or higher
- PostgreSQL database version 13.25 or higher
- Required extensions:
citext,uuid-ossp,pg_stat_statements
- Required extensions:
- SMTP server for account management and email alerts
- Domain name where you'll host your Massdriver instance
Access Requirements​
Request these from the Massdriver team before you install:
- DockerHub access token to pull the application images
- License key to run the application
Dependencies (Included)​
The Helm chart includes:
- S3-compatible object storage (via MinIO)
- Argo Workflows for executing deployments
Installation Steps​
Step 1: Add the Helm Repository​
helm repo add massdriver https://massdriver-cloud.github.io/helm-charts
helm repo update
Step 2: Download and Configure Values​
curl -o values-custom.yaml https://raw.githubusercontent.com/massdriver-cloud/helm-charts/main/charts/massdriver/values-example.yaml
values-example.yaml holds only the mandatory and commonly changed values. The chart's values.yaml has all of them.
Step 3: Configure Required Values​
Set the values between the # BEGIN Mandatory values and # END Mandatory values comments in values-custom.yaml:
Required Configuration​
PostgreSQL Connection
yamlpostgres:
username: "massdriver_user"
password: "your-secure-password"
hostname: "your-postgres-host"
database: "massdriver"
port: 5432SMTP Configuration
yamlsmtp:
username: "your-smtp-username"
password: "your-smtp-password"
server: "your-smtp-server"
port: 587
fromAddress: "noreply@your-domain.com"Domain Configuration
yamldomain: "massdriver.example.com"Massdriver is served on two subdomains of this domain,
app.massdriver.example.comandapi.massdriver.example.com. Create DNS records for both pointing at your ingress controller or Gateway's external address (see Step 4).Docker Registry Access
yamldockerhub:
accessToken: "your-dockerhub-token" # Provided by Massdriver teamLicense Key
yamllicenseKey: "your-license-key" # Provided by Massdriver team
Optional Configuration​
Set Massdriver server environment variables in massdriver.additionalEnvs, and sensitive ones in massdriver.additionalSecrets:
massdriver:
additionalEnvs:
MD_AUDIT_LOG_RETENTION_DAYS: "365"
Documentation link
massdriver.docsUrl sets the documentation link in the sidebar. The default is https://docs.massdriver.cloud.
Session length
massdriver.sessionTtlHours sets how many hours a login session lasts, whether or not the user is active. The default is 720.
Audit log retention
Massdriver keeps every audit log event by default. To delete old events, set MD_AUDIT_LOG_RETENTION_DAYS to the number of days to keep. A value below 1 keeps every event.
Massdriver deletes a whole month of events at a time, after the last day of the month is older than this number of days. So it keeps at least this number of days, and up to one month more. The value cannot be less than MD_EVENT_DESTINATIONS_FAILED_RETENTION_DAYS (default 30), because event destinations read failed events from the audit log when you send them again. A smaller value of 1 or more is raised to it, and Massdriver logs a warning.
Stash limits
MD_STASH_MAX_VALUE_BYTES (default 65536) limits the size of one stash value. MD_STASH_MAX_KEYS_PER_SCOPE (default 1000) limits the number of keys in one stash.
UI notice lifetime
When a project or environment is created, Massdriver shows a notice in the notification bell. MD_UI_NOTICE_TTL_SECONDS sets how many seconds a notice stays. The default is 600.
For a release name other than massdriver, search for release name in the values file and update those values.
Step 4: Configure Ingress or Gateway API​
Use either a Kubernetes Ingress or the Gateway API, not both.
Ingress Controller​
values-example.yaml enables the ingress. In the chart's values.yaml, it is disabled by default.
massdriver:
ingress:
enabled: true
ingressClassName: "nginx" # Update to match your ingress controller, or leave blank to use the default ingress controller
TLS Configuration​
Massdriver requires a TLS certificate valid for the following subdomains:
app.<your-domain>api.<your-domain>
Option 1: Using cert-manager (Recommended)
If cert-manager runs in the cluster and manages the domain in domain, set its annotation:
massdriver:
ingress:
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod" # Your issuer name
tls:
createSecret: true
Option 2: Provide Your Own Certificate Managed By Helm
To have the chart create the secret from your certificate:
massdriver:
ingress:
tls:
createSecret: true
cert: |
-----BEGIN CERTIFICATE-----
# Your certificate content
-----END CERTIFICATE-----
key: |
-----BEGIN PRIVATE KEY-----
# Your private key content
-----END PRIVATE KEY-----
Option 3: Provide Your Own Certificate Managed Manually
To manage the secret yourself, create it:
kubectl create secret tls massdriver-tls --cert=path/to/tls.crt --key=path/to/tls.key
Then reference it:
massdriver:
ingress:
tls:
createSecret: false
secretName: massdriver-tls
Option 4: Disable TLS (NOT recommended for production)
Without TLS, sensitive data travels unencrypted. Use it only for short-term development and testing.
massdriver:
ingress:
tls:
enabled: false
Gateway API​
If your cluster uses the Gateway API, Massdriver can attach HTTPRoute resources to an existing Gateway instead of creating an Ingress. This requires the Gateway API CRDs and a Gateway with listeners for app.<your-domain> and api.<your-domain>. If the Gateway is in a different namespace than Massdriver, its listeners' allowedRoutes must permit routes from the Massdriver namespace.
Disable the ingress, which values-example.yaml enables, and enable httpRoute:
massdriver:
ingress:
enabled: false
httpRoute:
enabled: true
parentRefs:
- name: "external-gateway" # Name of your Gateway
namespace: "gateway-system" # Optional: defaults to the Massdriver namespace
# sectionName: "https" # Optional: attach to a specific listener
tls:
enabled: true
TLS is terminated on the Gateway, so the certificate for both subdomains is configured on the Gateway's listeners, not in the Massdriver chart. httpRoute.tls.enabled only tells Massdriver whether to generate https URLs. Set it to false if your Gateway serves plain HTTP (NOT recommended for production).
Step 5: Configure Access​
Massdriver authenticates users with one or more OpenID Connect (OIDC) providers. See OIDC Configuration.
QuickStart Login
QuickStart login is for short-term access after installation. Use OIDC in production.
For initial testing, QuickStart creates a single user without OIDC:
quickstart:
email: you@example.com
password: p@ssw0rd
Once OIDC is configured, disable QuickStart by removing the section from values-custom.yaml or setting it to an empty object (quickstart: {}).
Step 6: Install Massdriver​
helm install massdriver massdriver/massdriver \
-n massdriver \
--create-namespace \
-f values-custom.yaml
Step 7: Verify Installation​
Check that all pods are running, then check the ingress or, with the Gateway API, that both routes are accepted:
kubectl get pods -n massdriver
kubectl get ingress -n massdriver
kubectl get httproute -n massdriver
Accessing Your Installation​
- Application (OIDC login):
https://app.<your-domain>/login - Application (QuickStart login):
https://api.<your-domain>/auth/quickstart - GraphQL API:
https://api.<your-domain>/api/v2 - API workbench:
https://app.<your-domain>/api-workbench
Setup CLI​
Point the mass CLI at the installation with MASSDRIVER_URL=https://api.<your-domain>/, or add a profile to its configuration file. See CLI configuration.
Updating Your Installation​
Review the chart changelog for required values changes, then upgrade:
helm repo update
helm upgrade massdriver massdriver/massdriver \
-n massdriver \
-f values-custom.yaml
Troubleshooting​
Common Issues​
Pods failing to start
- Verify your DockerHub access token is correct
- Check that your license key is valid
- Ensure PostgreSQL connectivity
Ingress or Gateway not working
- Verify your ingress controller or Gateway is running
- For the Gateway API, run
kubectl describe httproute -n massdriverand check theAcceptedandResolvedRefsconditions - Check that DNS is properly configured
- Ensure TLS certificates are valid for all required subdomains
Database connection issues
- Verify PostgreSQL credentials and connectivity
- Ensure the database exists and the user has proper permissions
Getting Help​
Ask in the Slack community, or contact the Massdriver team for enterprise support.
Next Steps​
- The Massdriver Catalog is a repository of resource types and bundles to clone and customize. Use it to model your platform architecture before you write infrastructure code.