Track Experiments and Models with MLflow on Kubernetes
Advanced · 60 minutes · 5 tasks, checked automatically · 100 points
In this advanced MLops lab you will deploy a production-ready MLflow Tracking Server on a local kind Kubernetes cluster, configure a PostgreSQL backend store and a MinIO artifact store, run real ML experiments from inside a Kubernetes Job, and query the MLflow API to verify tracked runs and registered models. By the end you will have a fully functional MLflow platform running entirely on Kubernetes with no cloud dependencies.
What you’ll learn
- Deploy PostgreSQL and MinIO as backend and artifact stores for MLflow on Kubernetes
- Deploy the MLflow Tracking Server configured to use PostgreSQL and MinIO
- Run a Kubernetes Job that trains a scikit-learn model and logs parameters, metrics, and artifacts to MLflow
- Register a model version in the MLflow Model Registry and verify it via the REST API
How this lab works
- Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Cluster: A real Kubernetes cluster on your computer (kind)
- Kubernetes: 1.34.8
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kind cluster created in the Kubernetes Playground
Topics: mlflow, mlops, kubernetes, model-registry, experiment-tracking, scikit-learn, postgresql, minio, s3, kind
Create a free account to start this lab.