mlflow

by ScriptonBasestar

Helm chartv0.3.0App 2.9.2

MLflow experiment tracking and model registry platform

About this chart

MLflow Helm Chart

MLflow experiment tracking and model registry platform for machine learning.

Features

  • ✅ MLflow 2.9.2 - Latest version
  • ✅ PostgreSQL Backend - Production-ready database
  • ✅ MinIO/S3 Artifacts - Scalable artifact storage
  • ✅ Easy Development - SQLite + local storage fallback
  • ✅ Model Registry - Track and version models
  • ✅ Python Integration - Native MLflow client support

Quick Start

# Development (SQLite + local storage)
helm install my-mlflow scripton-charts/mlflow \
  -f https://raw.githubusercontent.com/scriptonbasestar-container/sb-helm-charts/master/charts/mlflow/values-dev.yaml

# Access MLflow UI
kubectl port-forward svc/my-mlflow 5000:5000
# Open http://localhost:5000

Production Setup

# Install with PostgreSQL and MinIO
helm install my-mlflow scripton-charts/mlflow \
  -f https://raw.githubusercontent.com/scriptonbasestar-container/sb-helm-charts/master/charts/mlflow/values-prod.yaml \
  --set postgresql.external.password='<DB_PASSWORD>' \
  --set minio.external.accessKey='<MINIO_KEY>' \
  --set minio.external.secretKey='<MINIO_SECRET>'

Python Client Usage

import mlflow

# Set tracking URI
mlflow.set_tracking_uri("http://my-mlflow.default.svc.cluster.local:5000")

# Log experiment
with mlflow.start_run():
    mlflow.log_param("learning_rate", 0.01)
    mlflow.log_metric("accuracy", 0.95)
    mlflow.log_artifact("model.pkl")

Configuration

External PostgreSQL

postgresql:
  external:
    enabled: true
    host: "postgresql.default.svc.cluster.local"
    database: "mlflow"
    username: "mlflow"
    password: "<password>"

External MinIO/S3

minio:
  external:
    enabled: true
    endpoint: "http://minio:9000"
    accessKey: "<access-key>"
    secretKey: "<secret-key>"
    bucket: "mlflow"

Values Profiles

  • values-dev.yaml: SQLite + local storage, single replica
  • values-prod.yaml: PostgreSQL + MinIO, 2 replicas, HA

License

BSD-3-Clause. MLflow is Apache 2.0 licensed.


Chart Version: 0.1.0
MLflow Version: 2.9.2

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmlflow is pinned at v0.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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