Skip to content

MLflow Platform Notes

Interactive Diagram

새 탭 ↗
ItemValue
VersionMLflow v3.14.0, Helm chart v0.1.0
Official docsMLflow Tracking
Chart sourcebase/mlflow/charts/mlflow-0.1.0
Dev overlayoverlays/dev/mlflow

MLflow is not a Kubeflow control plane component. It is a separate application for experiment tracking and model lifecycle metadata. The client library or the MLflow UI creates experiments and runs, and the server records parameters, metrics, tags, run state, registered models, and model version metadata in the backend store. Artifacts such as model files, checkpoints, images, and dataset snapshots are stored in S3-compatible object storage, not in the metadata database.

Remote tracking server setup in which the MLflow client records metadata through the tracking server, and the server proxies artifacts to the artifact store. The official figure uses PostgreSQL as an example database, while this post uses MySQL Source: MLflow docs, Remote Tracking Server tutorial, MLflow Project, Apache-2.0

The current development overlay runs a single-replica MLflow server in the mlflow namespace. The chart runs mlflow server and enables the MLflow basic authentication plugin with --app-name=basic-auth. The Service and Ingress use the / root path. They are not connected to the Kubeflow Dashboard kubeflow-gateway, Dex, or oauth2-proxy routes.

In this deployment MLflow runs next to Kubeflow rather than inside the Kubeflow control plane. It stores run and model metadata in MySQL, stores artifacts in a SeaweedFS S3 bucket, exposes a standalone UI and Tracking API, and uses MLflow’s basic-auth plugin for application-level authentication.

Boundary between MLflow tracking and Model Registry

Section titled “Boundary between MLflow tracking and Model Registry”

MLflow Model Registry manages registered model and model version metadata in the MLflow backend store. It is a separate system from the Model Registry provided by Kubeflow Hub. The current overlay does not set MLFLOW_REGISTRY_STORE_URI, so registry metadata is stored together in the mlflow database that MLFLOW_BACKEND_STORE_URI points to.

CategoryMLflowKubeflow Hub
Main API surfaceExperiments, runs, metrics, and MLflow model versionsKubeflow registered models, versions, and artifact metadata
Metadata storeShared MySQL mlflow logical databaseShared MySQL model_registry logical database
Artifact storeSeaweedFS mlflow-artifacts bucketRegistered external artifact URIs
Dashboard integrationNone; standalone hostname/model-registry/
Direct KServe integrationNone currentlymodel-registry:// storage initializer

Do not treat the two registries as the same model catalog or synchronize their metadata automatically. To serve a model recorded in MLflow with KServe or register it in Kubeflow Hub, you need a separate workflow that passes the artifact URI and metadata explicitly. A model logged in MLflow does not become a KServe-ready Kubeflow registry entry by itself.

Notebook, Pipeline, Katib, and Trainer workloads run training, but they do not provide a service for comparing parameters, metrics, artifacts, and model versions across experiments in the MLflow API style. MLflow fills this gap and makes runs recorded with the Python MLflow client available through the UI and API.

  • experiment tracking: stores the parameters, metrics, tags, and run lifecycle sent by clients in the shared MySQL.
  • artifact proxy: the server proxies artifact upload and download to SeaweedFS S3. Setting a destination alone is not enough: both conditions must hold. First, the server must be started with mlflow server --serve-artifacts --artifacts-destination s3://mlflow-artifacts (the MLFLOW_ARTIFACTS_DESTINATION environment variable only supplies the --artifacts-destination value; it does not replace --serve-artifacts). Second, clients must receive artifact URIs using the mlflow-artifacts:/ scheme. If a run’s artifact URI is handed out as s3://..., the client talks to object storage directly and does not use the proxy path.
  • independent browser access: an nginx Ingress on the mlflow.<cluster-domain> hostname forwards traffic to the MLflow Service.
  • application authentication: the MLflow basic-auth plugin handles UI and API user authentication.
  • Kubeflow workload integration: Notebooks, Pipeline steps, Katib Trials, and Trainer Jobs can receive the MLflow tracking URI and user credentials and record runs as clients. The current overlay does not automatically inject environment variables or Secrets into these workloads.

What it does not do in this overlay:

  • it does not integrate with Kubeflow Dashboard SSO
  • it does not automatically inject credentials into dependent workloads
  • it does not automatically connect MLflow-logged models to KServe or Kubeflow Hub
  • it does not define namespace traffic policy through a built-in NetworkPolicy
overlays/dev/mlflow
-> base/mlflow/charts/mlflow-0.1.0
-> values.yaml
-> shared MySQL backend store Secret reference
-> SeaweedFS S3 endpoint와 artifact credential reference
-> MLflow basic-auth Secret mount
-> ingress.yaml
-> cert-manager Certificate
-> nginx Ingress

kustomization.yaml renders only the Helm chart and ingress.yaml. The chart does not create mlflow-db-secret, mlflow-minio-artifact, or mlflow-auth-secret; they must be provisioned separately through local Secret management before the Deployment starts. The *.secret.yaml files in the overlay are manual templates that show the key contract, but they are not currently included in the kustomization resources.

The required keys are: mlflow-db-secret needs uri (backend store URI for the MySQL mlflow database), mlflow-minio-artifact needs accesskey and secretkey (SeaweedFS S3 credentials for artifact access), and mlflow-auth-secret needs secretkey and basic_auth_ini (Flask session signing key and initial basic-auth configuration).

SettingCurrent valueMeaning
Imageghcr.io/mlflow/mlflow:v3.14.0-fullMLflow server image
Replicas1Single MLflow server Pod
Servicemlflow.mlflow.svc.cluster.local:5000In-cluster MLflow HTTP endpoint
Backend storeMLFLOW_BACKEND_STORE_URI from mlflow-db-secret.uriMySQL mlflow database metadata connection
Registry storeNot setThe backend store is used as the registry metadata store
Artifact destinations3://mlflow-artifactsServer-proxied artifact storage root
S3 endpointhttp://seaweedfs-s3.seaweedfs.svc.cluster.local:8333SeaweedFS S3 API
S3 credentialsmlflow-minio-artifact.accesskey, secretkeyMust be an identity dedicated to the mlflow-artifacts bucket
Server authentication--app-name=basic-authEnables the MLflow basic-auth plugin
Auth configurationmlflow-auth-secret.basic_auth_iniInitial basic-auth users and permission configuration
Flask secretmlflow-auth-secret.secretkeySession-signing key
GC CronJobDisabledSoft-deleted runs and artifacts are not deleted automatically
Metrics / ServiceMonitorDisabledNo Prometheus scrape manifest is created
NetworkPolicyDisabledNamespace traffic policy must be managed separately

Operationally, this is a simple but non-HA deployment: one Pod handles both UI and Tracking API requests, and the deployment depends on external MySQL, S3-compatible storage, and Secrets being present and correct.

With the single MLFLOW_BACKEND_STORE_URI, the MLflow server records run metadata and MLflow Model Registry metadata in the same MySQL mlflow logical database. The database bootstrap Job must create this database before the workload starts, and the uri key of the Secret holding the URI must use the format mysql+pymysql://<user>:<password>@<mysql-writer>.<db-namespace>.svc.cluster.local:3306/mlflow. The user should have only the DDL and DML privileges required for the mlflow database.

Artifact storage must use the mlflow-artifacts bucket and a SeaweedFS S3 identity that can read and write only that bucket. The MLflow Pod configures its S3 client through AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and MLFLOW_S3_ENDPOINT_URL. It does not share other applications’ buckets or KFP control credentials. Shared infrastructure policy follows Shared Data Services (MySQL and Object Storage).

The authentication path differs from the Kubeflow Dashboard. The nginx Ingress controller terminates the mlflow.<cluster-domain> TLS connection and forwards it to the cluster-local mlflow:5000 HTTP Service. The Certificate uses the kubeflow-self-signing-issuer ClusterIssuer. ssl-redirect: "false" means HTTP requests are not redirected to HTTPS; it does not remove the TLS entrypoint itself.

The MLflow basic-auth plugin uses the initial users and permission policy defined in basic_auth_ini. In this overlay the auth database URI is /tmp/auth/auth.db, and /tmp is a Pod emptyDir volume. As a result, the user database managed by the plugin is not preserved after Pod replacement or node failure. If a durable basic-auth user lifecycle is required, move the auth database URI to a persistent external database or redesign MLflow access around an external authentication gateway.

So the current authentication setup is acceptable for development or testing, but not for durable production identity management.

NamespaceResourceNameRole
mlflowDeploymentmlflowMLflow tracking API, UI, artifact proxy, basic-auth plugin
mlflowServiceAccountmlflowRuns the server Pod without ServiceAccount token automount
mlflowServicemlflowHTTP endpoint on port 5000
mlflowCertificatemlflow-ingressgateway-certsIssues the TLS Secret for the MLflow hostname
mlflowIngressmlflow-ingressRoutes from the nginx ingress controller to the MLflow Service
mlflowSecretmlflow-db-secretMySQL backend store URI, provisioned separately
mlflowSecretmlflow-minio-artifactSeaweedFS S3 credentials, provisioned separately
mlflowSecretmlflow-auth-secretFlask session key and basic-auth configuration, provisioned separately
mysqlPercona MySQL Cluster + Serviceps-db, ps-db-haproxyWriter endpoint for the mlflow logical database
seaweedfsDeployment + Serviceseaweedfs-s3SeaweedFS S3 API on port 8333
seaweedfsBucketmlflow-artifactsMLflow run artifact root, requires bootstrap

PlantUML source:

PlantUML Diagram
  1. A Notebook, Pipeline step, Katib Trial, Trainer Job, or external client calls the experiment or run API using the MLflow tracking URI and basic-auth credentials.
  2. The nginx Ingress forwards the request to the mlflow Service, and the MLflow basic-auth plugin verifies the user credentials.
  3. The MLflow server records run metadata, parameters, metrics, tags, and registered model and version metadata in the Percona MySQL mlflow database.
  4. The client’s artifact upload or download request enters the MLflow artifact proxy.
  5. The server reads from or writes to the SeaweedFS mlflow-artifacts bucket using the mlflow-minio-artifact credentials and the seaweedfs-s3:8333 endpoint.

The MLflow UI and API then return the resulting state to the client.

PlantUML source:

PlantUML Diagram
  • Upstream (must be Ready first): the mlflow namespace, <mysql-writer>.<db-namespace>.svc.cluster.local, SeaweedFS seaweedfs-s3:8333, the mlflow-artifacts bucket, the three Secrets MLflow references, the kubeflow-self-signing-issuer ClusterIssuer, and the nginx ingress controller.
  • Downstream (depends on this): Notebook, Pipeline, Katib, Trainer, or external application workloads that are given the MLflow tracking URI and credentials and record runs.
  • The MLflow server does not call the Kubernetes API, and ServiceAccount token automount is disabled.
  • The MLflow Service is an in-cluster HTTP endpoint; external browser traffic uses a standalone nginx Ingress. Kubeflow gateway Dex SSO and AuthorizationPolicy do not apply to this traffic path.
  • The mlflow-artifacts bucket is for MLflow artifacts. Even when the KFP mlpipeline bucket, Model Registry artifact URIs, and the SeaweedFS filer UI use the same storage backend, the identity and bucket contracts stay separate.
  • Deployment/mlflow: runs the tracking server, MLflow Model Registry metadata API, artifact proxy, and basic-auth plugin.
  • Secret/mlflow-db-secret: required key uri. Provides the MLflow backend store MySQL URI.
  • Secret/mlflow-minio-artifact: required keys accesskey, secretkey. Provides the SeaweedFS S3 identity.
  • Secret/mlflow-auth-secret: required keys secretkey, basic_auth_ini. Provides Flask session signing and basic-auth configuration.
  • Certificate/mlflow-ingressgateway-certs and Ingress/mlflow-ingress: provide standalone hostname TLS and HTTP routing.
MLflow client -> ingress -> MLflow server -> MySQL metadata / SeaweedFS artifacts
Operational contractDescription
metadataUses the Percona MySQL mlflow database
artifactsUses the SeaweedFS mlflow-artifacts bucket
browser entryExposed through a standalone nginx Ingress

The deployment separates tracking metadata, artifact objects, and browser exposure so that each storage and authentication contract remains independently operable. Clients authenticate to MLflow, record run and registry metadata in MySQL, and upload or download artifacts through the server’s S3 proxy.