MLflow Platform Notes
Basic facts
Section titled “Basic facts”| Item | Value |
|---|---|
| Version | MLflow v3.14.0, Helm chart v0.1.0 |
| Official docs | MLflow Tracking |
| Chart source | base/mlflow/charts/mlflow-0.1.0 |
| Dev overlay | overlays/dev/mlflow |
Concepts and characteristics
Section titled “Concepts and characteristics”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.
![]()
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.
| Category | MLflow | Kubeflow Hub |
|---|---|---|
| Main API surface | Experiments, runs, metrics, and MLflow model versions | Kubeflow registered models, versions, and artifact metadata |
| Metadata store | Shared MySQL mlflow logical database | Shared MySQL model_registry logical database |
| Artifact store | SeaweedFS mlflow-artifacts bucket | Registered external artifact URIs |
| Dashboard integration | None; standalone hostname | /model-registry/ |
| Direct KServe integration | None currently | model-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.
Role within Kubeflow
Section titled “Role within Kubeflow”Background
Section titled “Background”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.
Key contributions
Section titled “Key contributions”- 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(theMLFLOW_ARTIFACTS_DESTINATIONenvironment variable only supplies the--artifacts-destinationvalue; it does not replace--serve-artifacts). Second, clients must receive artifact URIs using themlflow-artifacts:/scheme. If a run’s artifact URI is handed out ass3://..., 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
Deployment layout
Section titled “Deployment layout”Overlay structure
Section titled “Overlay structure”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 Ingresskustomization.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).
Runtime settings
Section titled “Runtime settings”| Setting | Current value | Meaning |
|---|---|---|
| Image | ghcr.io/mlflow/mlflow:v3.14.0-full | MLflow server image |
| Replicas | 1 | Single MLflow server Pod |
| Service | mlflow.mlflow.svc.cluster.local:5000 | In-cluster MLflow HTTP endpoint |
| Backend store | MLFLOW_BACKEND_STORE_URI from mlflow-db-secret.uri | MySQL mlflow database metadata connection |
| Registry store | Not set | The backend store is used as the registry metadata store |
| Artifact destination | s3://mlflow-artifacts | Server-proxied artifact storage root |
| S3 endpoint | http://seaweedfs-s3.seaweedfs.svc.cluster.local:8333 | SeaweedFS S3 API |
| S3 credentials | mlflow-minio-artifact.accesskey, secretkey | Must be an identity dedicated to the mlflow-artifacts bucket |
| Server authentication | --app-name=basic-auth | Enables the MLflow basic-auth plugin |
| Auth configuration | mlflow-auth-secret.basic_auth_ini | Initial basic-auth users and permission configuration |
| Flask secret | mlflow-auth-secret.secretkey | Session-signing key |
| GC CronJob | Disabled | Soft-deleted runs and artifacts are not deleted automatically |
| Metrics / ServiceMonitor | Disabled | No Prometheus scrape manifest is created |
| NetworkPolicy | Disabled | Namespace 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.
Shared MySQL and object storage contract
Section titled “Shared MySQL and object storage contract”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).
Browser ingress and authentication
Section titled “Browser ingress and authentication”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.
Deployment view
Section titled “Deployment view”Resource Placement
Section titled “Resource Placement”| Namespace | Resource | Name | Role |
|---|---|---|---|
mlflow | Deployment | mlflow | MLflow tracking API, UI, artifact proxy, basic-auth plugin |
mlflow | ServiceAccount | mlflow | Runs the server Pod without ServiceAccount token automount |
mlflow | Service | mlflow | HTTP endpoint on port 5000 |
mlflow | Certificate | mlflow-ingressgateway-certs | Issues the TLS Secret for the MLflow hostname |
mlflow | Ingress | mlflow-ingress | Routes from the nginx ingress controller to the MLflow Service |
mlflow | Secret | mlflow-db-secret | MySQL backend store URI, provisioned separately |
mlflow | Secret | mlflow-minio-artifact | SeaweedFS S3 credentials, provisioned separately |
mlflow | Secret | mlflow-auth-secret | Flask session key and basic-auth configuration, provisioned separately |
mysql | Percona MySQL Cluster + Service | ps-db, ps-db-haproxy | Writer endpoint for the mlflow logical database |
seaweedfs | Deployment + Service | seaweedfs-s3 | SeaweedFS S3 API on port 8333 |
seaweedfs | Bucket | mlflow-artifacts | MLflow run artifact root, requires bootstrap |
Diagram
Section titled “Diagram”PlantUML source:
Operation flow
Section titled “Operation flow”Run recording and artifact upload
Section titled “Run recording and artifact upload”- 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.
- The nginx Ingress forwards the request to the
mlflowService, and the MLflow basic-auth plugin verifies the user credentials. - The MLflow server records run metadata, parameters, metrics, tags, and registered model and version metadata in the Percona MySQL
mlflowdatabase. - The client’s artifact upload or download request enters the MLflow artifact proxy.
- The server reads from or writes to the SeaweedFS
mlflow-artifactsbucket using themlflow-minio-artifactcredentials and theseaweedfs-s3:8333endpoint.
The MLflow UI and API then return the resulting state to the client.
PlantUML source:
Dependencies and interactions
Section titled “Dependencies and interactions”Upstream / downstream
Section titled “Upstream / downstream”- Upstream (must be Ready first): the
mlflownamespace,<mysql-writer>.<db-namespace>.svc.cluster.local, SeaweedFSseaweedfs-s3:8333, themlflow-artifactsbucket, the three Secrets MLflow references, thekubeflow-self-signing-issuerClusterIssuer, 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.
Runtime interactions
Section titled “Runtime interactions”- 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-artifactsbucket is for MLflow artifacts. Even when the KFPmlpipelinebucket, Model Registry artifact URIs, and the SeaweedFS filer UI use the same storage backend, the identity and bucket contracts stay separate.
Key resources
Section titled “Key resources”Deployment/mlflow: runs the tracking server, MLflow Model Registry metadata API, artifact proxy, and basic-auth plugin.Secret/mlflow-db-secret: required keyuri. Provides the MLflow backend store MySQL URI.Secret/mlflow-minio-artifact: required keysaccesskey,secretkey. Provides the SeaweedFS S3 identity.Secret/mlflow-auth-secret: required keyssecretkey,basic_auth_ini. Provides Flask session signing and basic-auth configuration.Certificate/mlflow-ingressgateway-certsandIngress/mlflow-ingress: provide standalone hostname TLS and HTTP routing.
References
Section titled “References”- overlay:
overlays/dev/mlflow - chart:
base/mlflow/charts/mlflow-0.1.0 - related infrastructure: Shared Data Services (MySQL and Object Storage)
MLflow client -> ingress -> MLflow server -> MySQL metadata / SeaweedFS artifacts| Operational contract | Description |
|---|---|
| metadata | Uses the Percona MySQL mlflow database |
| artifacts | Uses the SeaweedFS mlflow-artifacts bucket |
| browser entry | Exposed 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.