mlflow
A Helm chart for Mlflow open source platform for the machine learning lifecycle
About this chart
mlflow
A Helm chart for Mlflow open source platform for the machine learning lifecycle
Official Documentation
For detailed usage instructions, configuration options, and additional information about the mlflow Helm chart, refer to the official documentation.
Get Helm Repository Info
helm repo add community-charts https://community-charts.github.io/helm-charts
helm repo update
See helm repo for command documentation.
Installing the Chart
helm install [RELEASE_NAME] community-charts/mlflow
See configuration below.
See helm install for command documentation.
Tip: Search all available chart versions using
helm search repo community-charts -l. Please don't forget to runhelm repo updatebefore the command.
Supported Databases
Currently, we support the following two databases as a backend repository for Mlflow.
Supported Cloud Providers
We currently support the following three cloud providers for BLOB storage integration.
Values Files Examples
Postgres Database Migration Values Files Example
backendStore:
databaseMigration: true
postgres:
enabled: true
host: "postgresql-instance1.cg034hpkmmjt.eu-central-1.rds.amazonaws.com"
port: 5432
database: "mlflow"
user: "mlflowuser"
password: "Pa33w0rd!"
Postgres Database with Existing Database Secret Example
backendStore:
postgres:
enabled: true
host: "postgresql-instance1.cg034hpkmmjt.eu-central-1.rds.amazonaws.com"
port: 5432
database: "mlflow"
existingDatabaseSecret:
name: "postgres-database-secret"
usernameKey: "username"
passwordKey: "password"
Bitnami's Postgres Database Migration Values Files Example
backendStore:
databaseMigration: true
postgres:
enabled: true
MySQL Database Migration Values Files Example
backendStore:
databaseMigration: true
mysql:
enabled: true
host: "mysql-instance1.cg034hpkmmjt.eu-central-1.rds.amazonaws.com"
port: 3306
database: "mlflow"
user: "mlflowuser"
password: "Pa33w0rd!"
MySQL Database with Existing Database Secret Example
backendStore:
mysql:
enabled: true
host: "mysql-instance1.cg034hpkmmjt.eu-central-1.rds.amazonaws.com"
port: 3306
database: "mlflow"
existingDatabaseSecret:
name: "mysql-database-secret"
usernameKey: "username"
passwordKey: "password"
Bitnami's MySQL Database Migration Values Files Example
backendStore:
databaseMigration: true
mysql:
enabled: true
Postgres Database Connection Check Values Files Example
backendStore:
databaseConnectionCheck: true
postgres:
enabled: true
host: "postgresql-instance1.cg034hpkmmjt.eu-central-1.rds.amazonaws.com"
port: 5432
database: "mlflow"
user: "mlflowuser"
password: "Pa33w0rd!"
Bitnami's Postgres Database Connection Check Values Files Example
backendStore:
databaseConnectionCheck: true
postgres:
enabled: true
MySQL Database Connection Check Values Files Example
backendStore:
databaseConnectionCheck: true
mysql:
enabled: true
host: "mysql-instance1.cg034hpkmmjt.eu-central-1.rds.amazonaws.com"
port: 3306
database: "mlflow"
user: "mlflowuser"
password: "Pa33w0rd!"
Bitnami's MySQL Database Connection Check Values Files Example
backendStore:
databaseConnectionCheck: true
mysql:
enabled: true
MSSQL Database Migration Values Files Example
backendStore:
databaseMigration: true
mssql:
enabled: true
host: "mssql-instance1.database.windows.net"
port: 1433
database: "mlflow"
user: "mlflowuser"
password: "Pa33w0rd!"
MSSQL Database with Azure Active Directory or MSI Connection URL Example
For Azure AD or Managed Service Identity (MSI) authentication, pass a full SQLAlchemy connection URL via connectionUrl. When set, host, port, database, user, and password are all ignored.
backendStore:
databaseMigration: true
mssql:
enabled: true
connectionUrl: "mssql+pyodbc:///?odbc_connect=Driver={ODBC Driver 18 for SQL Server};Server=mssql-instance1.database.windows.net,1433;Database=mlflow;Authentication=ActiveDirectoryMsi"
MSSQL Database with Existing Connection URL Secret Example
Store a credential-bearing connection URL in a Kubernetes Secret. existingConnectionUrlSecret takes priority over connectionUrl when set.
backendStore:
databaseMigration: true
mssql:
enabled: true
existingConnectionUrlSecret:
name: "mssql-connection-secret"
key: "connection-url"
AWS Installation Examples
You can use 2 different way to connect your S3 backend.
- First way, you can access to your S3 with IAM user's awsAccessKeyId and awsSecretAccessKey.
- Second way, you can create an aws role for your service account. And you can assign your role ARN from serviceAccount annotation. You don't need to create or manage IAM user anymore. Please find more information from here.
Tip: Please follow this tutorial to create your own RDS postgres cluster.
S3 (Minio) and PostgreSQL DB Configuration on Helm Upgrade Command Example
helm upgrade --install mlflow community-charts/mlflow \
--set backendStore.databaseMigration=true \
--set backendStore.postgres.enabled=true \
--set backendStore.postgres.host=postgres-service \
--set backendStore.postgres.port=5432 \
--set backendStore.postgres.database=postgres \
--set backendStore.postgres.user=postgres \
--set backendStore.postgres.password=postgres \
--set artifactRoot.s3.enabled=true \
--set artifactRoot.s3.bucket=mlflow \
--set artifactRoot.s3.awsAccessKeyId=minioadmin \
--set artifactRoot.s3.awsSecretAccessKey=minioadmin \
--set extraEnvVars.MLFLOW_S3_ENDPOINT_URL=http://minio-service:9000 \
--set serviceMonitor.enabled=true
S3 (Minio) and MySQL DB Configuration on Helm Upgrade Command Example
helm upgrade --install mlflow community-charts/mlflow \
--set backendStore.databaseMigration=true \
--set backendStore.mysql.enabled=true \
--set backendStore.mysql.host=mysql-service \
--set backendStore.mysql.port=3306 \
--set backendStore.mysql.database=mlflow \
--set backendStore.mysql.user=mlflow \
--set backendStore.mysql.password=mlflow \
--set artifactRoot.s3.enabled=true \
--set artifactRoot.s3.bucket=mlflow \
--set artifactRoot.s3.awsAccessKeyId=minioadmin \
--set artifactRoot.s3.awsSecretAccessKey=minioadmin \
--set extraEnvVars.MLFLOW_S3_ENDPOINT_URL=http://minio-service:9000 \
--set serviceMonitor.enabled=true
S3 Access with awsAccessKeyId and awsSecretAccessKey Values Files Example
backendStore:
postgres:
enabled: true
host: "postgresql-instance1.cg034hpkmmjt.eu-central-1.rds.amazonaws.com"
port: 5432
database: "mlflow"
user: "mlflowuser"
password: "Pa33w0rd!"
artifactRoot:
s3:
enabled: true
bucket: "my-mlflow-artifact-root-backend"
awsAccessKeyId: "a1b2c3d4"
awsSecretAccessKey: "a1b2c3d4"
S3 Access with AWS EKS Role ARN Values Files Example
serviceAccount:
create: true
annotations:
eks.amazonaws.com/role-arn: "arn:aws:iam::account-id:role/iam-role-name"
name: "mlflow"
backendStore:
postgres:
enabled: true
host: "postgresql-instance1.cg034hpkmmjt.eu-central-1.rds.amazonaws.com"
port: 5432
database: "mlflow"
user: "mlflowuser"
password: "Pa33w0rd!"
artifactRoot:
s3:
enabled: true
bucket: "my-mlflow-artifact-root-backend"
Built-in MinIO Subchart for S3-Compatible Artifact Storage
The chart ships an optional MinIO subchart. Enable it to deploy a self-contained S3-compatible object store in the same namespace — no external object storage required.
When minio.enabled is true and artifactRoot.s3.bucket is empty, the chart automatically uses the first bucket name from minio.buckets.
backendStore:
databaseMigration: true
postgres:
enabled: true
host: "postgresql-instance1.cg034hpkmmjt.eu-central-1.rds.amazonaws.com"
port: 5432
database: "mlflow"
user: "mlflowuser"
password: "Pa33w0rd!"
artifactRoot:
s3:
enabled: true
minio:
enabled: true
buckets:
- name: mlflow-artifacts
policy: none
purge: false
Note: When
minio.enabledistrue, the chart readsAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYdirectly from the MinIO secret (rootUser/rootPasswordkeys) and setsMLFLOW_S3_ENDPOINT_URLautomatically — do not set those values underartifactRoot.s3.minio.rootUserandminio.rootPasswordare optional; MinIO auto-generates stable credentials on first install if omitted.
Azure Cloud Installation Example
Tip: Please follow this tutorial to create your own postgres database. Tip: Please follow this tutorial to create your azure blob storage and container.
backendStore:
postgres:
enabled: true
host: "mydemoserver.postgres.database.azure.com"
port: 5432
database: "mlflow"
user: "mlflowuser"
password: "Pa33w0rd!"
artifactRoot:
azureBlob:
enabled: true
container: "mlflow"
storageAccount: "mystorageaccount"
accessKey: "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
PVC Mount with Sqlite and File Based Artifactory Example
Prerequisites
Please create your PVC before the installation of your helm chart. You can use something similar as the following yaml file.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mlflow-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: standard
You need to create the PVC under same namespace as your mlflow helm chart.
Example Chart Parameters
strategy:
type: Recreate
extraVolumes:
- name: mlflow-volume
persistentVolumeClaim:
claimName: mlflow-pvc
extraVolumeMounts:
- name: mlflow-volume
mountPath: /mlflow/data
backendStore:
defaultSqlitePath: "/mlflow/data/mlflow.db"
artifactRoot:
proxiedArtifactStorage: true
defaultArtifactsDestination: "/mlflow/data/mlartifacts"
ingress:
enabled: true
hosts:
- host: my-mlflow-server-domain-name.com
paths:
- path: /
pathType: ImplementationSpecific
Authentication Example
Tip:
auth,ldapAuth, andoidcAuthare mutually exclusive — enable only one at a time!
Authentication with Plain Admin Settings Example
auth:
enabled: true
adminUsername: "admin"
adminPassword: "S3cr3+"
Authentication with Existing Admin Credentials Secret Example
auth:
enabled: true
existingAdminSecret:
name: auth-admin-secret
Use following configuration for centralised PosgreSQL DB backend for authentication backend.
Authentication Postgres DB Backend with Plain Settings Example
auth:
enabled: true
adminUsername: "admin"
adminPassword: "S3cr3+"
postgres:
enabled: true
host: "postgresql--auth-instance1.abcdef1234.eu-central-1.rds.amazonaws.com"
port: 5432
database: "auth"
user: "mlflowauth"
password: "A4m1nPa33w0rd!"
Authentication Postgres DB Backend with Existing Secret Example
auth:
enabled: true
existingAdminSecret:
name: auth-admin-secret
postgres:
enabled: true
host: postgresql--auth-instance1.abcdef1234.eu-central-1.rds.amazonaws.com
port: 5432
database: auth
existingSecret:
name: auth-postgres-database-secret
Basic Authentication with LDAP Backend
Tip:
auth,ldapAuth, andoidcAuthare mutually exclusive — enable only one at a time!
ldapAuth:
enabled: true
uri: "ldap://lldap:3890/dc=mlflow,dc=test"
tlsVerification: required
lookupBind: "uid=%s,ou=people,dc=mlflow,dc=test"
groupAttribute: "dn"
searchBaseDistinguishedName: "ou=groups,dc=mlflow,dc=test"
searchFilter: "(&(objectclass=groupOfUniqueNames)(uniquemember=%s))"
adminGroupDistinguishedName: "cn=test-admin,ou=groups,dc=mlflow,dc=test"
userGroupDistinguishedName: "cn=test-user,ou=groups,dc=mlflow,dc=test"
Basic Authentication with LDAP Backend and self-signed CA certificate
If you use self-signed certificate for your LDAP server, you can pass your self-signed CA certificate from encodedTrustedCACertificate variable by encoding it.
Deploy mlflow with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mlflow 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 chartmlflow is pinned at v1.11.7 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