Skip to main content

MLflow Kubeflow Integration

PyPI version License Join Slack

This repository provides the integration layer between MLflow and Kubeflow, making MLflow the first-class experiment tracking experience for the Kubeflow platform (KEP-897).

This repository packages two MLflow extensions for Kubernetes-backed deployments:

  • a workspace provider that maps MLflow workspaces to Kubernetes namespaces
  • an optional authorization plugin that enforces Kubernetes RBAC for MLflow requests

These plugins build on top of MLflow's workspace support. If you are new to MLflow workspaces, start with the official guide: https://mlflow.org/docs/latest/self-hosting/workspaces/getting-started/.

Components

Entry point MLflow hook Purpose
kubernetes mlflow.workspace_provider Exposes Kubernetes namespaces as MLflow workspaces.
kubernetes-auth mlflow.app Wraps the MLflow server with Kubernetes-based authorization checks.

Install

Install from PyPI:

pip install mlflow-kubernetes-plugins

For local development:

uv sync --extra dev

For Kubernetes deployment, see the charts/mlflow installation guide.

Quick Start

  1. Enable MLflow workspaces on an MLflow server backed by a SQL store.
  2. Install this package into the same environment as the MLflow server.
  3. Configure the workspace provider and, if needed, the auth plugin.
export MLFLOW_K8S_WORKSPACE_LABEL_SELECTOR="mlflow-enabled=true"
export MLFLOW_K8S_DEFAULT_WORKSPACE="team-a"

mlflow server \
  --backend-store-uri postgresql://user:pass@localhost/mlflow \
  --default-artifact-root s3://mlflow-artifacts \
  --enable-workspaces \
  --workspace-store-uri "kubernetes://" \
  --app-name kubernetes-auth

Use --app-name kubernetes-auth only when you want request authorization enforced by Kubernetes RBAC.

Documentation

Development

See CONTRIBUTING.md for development setup, coding style, and testing instructions.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlflow_kubernetes_plugins-1.6.0.tar.gz (98.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlflow_kubernetes_plugins-1.6.0-py3-none-any.whl (72.3 kB view details)

Uploaded Python 3

File details

Details for the file mlflow_kubernetes_plugins-1.6.0.tar.gz.

File metadata

File hashes

Hashes for mlflow_kubernetes_plugins-1.6.0.tar.gz
Algorithm Hash digest
SHA256 eb1b5aed5bfd81648db99ce3f796c62beeb0e6730da341bcc322baf362f429b7
MD5 6f3c0b007fbc646346505dbe961d4a1f
BLAKE2b-256 7825c3e9ce84892a7c4768e11c46e3bee7e152ecca0c0d73899a23c965bed279

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlflow_kubernetes_plugins-1.6.0.tar.gz:

Publisher: publish.yml on kubeflow/mlflow-integration

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mlflow_kubernetes_plugins-1.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mlflow_kubernetes_plugins-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0037bf6a610b41104c799e8bcac4cc251995a8f6edce9c489620dc729160ff5d
MD5 7748de0951ac3309c93815ec9e5e4ea2
BLAKE2b-256 74363d2d7da9a778f2b203c4d38947cf888c2824e7d8984c57b20bfa4f9fed71

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlflow_kubernetes_plugins-1.6.0-py3-none-any.whl:

Publisher: publish.yml on kubeflow/mlflow-integration

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.6.0 This release

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page