Skip to content

sageexplorer/Machine-Learning-Microservice-API

Repository files navigation

CircleCI

ABOUT:

This project uses docker, and Kubernetes to build a Microservice API in python virtual environment. The app predicts housing prices usign sklearn. Python App is a simple flask app that accepts data in an api, and sends response.

Setup the Environment

  • Create a virtualenv and activate it
  • Run make install to install the necessary dependencies

Running app.py

  1. Standalone: python app.py
  2. Run in Docker: ./run_docker.sh..Flask app will be available in port 80
  3. Run in Kubernetes: ./run_kubernetes.sh

Kubernetes Steps

  • run minikube create, and minikube start to create, and run the kubernetes pod
  • Verify pod is running by typing kubectl get pods
  • run ./run_kubernetes to create a deployment
  • Flask app will be exposed to port 8888
  • run ./make predictions to call Flask api

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published