Skip to content

box-key/pydata-kubernetes-mlflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyData NYC 2022

This is a repository for my talk, Gentle introduction to scaling up ML service with Kubernetes + Mlflow, at PyData NYC 2022.

Contents

  • The slides for my talk (link)
  • How to set up a 3-node K3s cluster (link)
  • How to set up Knative Serving (link)
  • How to set up mlflow model registry (link)
  • Code for test-app (link)

Prerequisites

I recommend you to install the followings before you run this repo

  • make (Linux tool)
  • curl (Linux tool)
  • python virtual environment such as conda

How to get started?

  1. Create .env in the project root directory by filling out variables in .env.example
  2. Set up a K3s instance by following this tutorial
  3. Set up mlflow model registry by following this tutorial
  4. Go to the K3s control plane node, and run make namespaces && make secrets. This sets up an environment for this demo in K3s. Make sure you follow the first step before you run this
  5. Once K3s and test-app are ready, you can execute the following commands on the control plane
    • Create deployment by kubectl apply -f kubernetes/deployment-demo.yaml
    • Create cluster IP by kubectl apply -f kubernetes/cluster-ip-demo.yaml
    • Create node port by kubectl apply -f kubernetes/node-port-demo.yaml
    • Create load balancer by kubectl apply -f kubernetes/load-balancer-demo.yaml

Optionally, you can run test-app in Knative by

  1. Install Knative by following this tutorial
  2. Create Knative service for test-app by kubectl apply -f kubernetes/knative-demo.yaml

Once everything is done, clean all components you created for this demo by running make clean on the K3s control plane node. For more information, run make help

About

A repo for demo at PyData NYC 2022

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published