Giter Club home page Giter Club logo

opertionalize-a-machine-leraning-microservice-api's Introduction

CircleCI

Opertionalize a Machine Leraning Microservice API using Kubernetes

Project Overview

The purpose of this project is to operationalize a Python flask app—in a provided file, app.py—using kubernetes, which is an open-source system for automating the management of containerized applications.

Project Files

In this project you will find:

  • app.py : Python flask app
  • requirements.txt : list of dependencies (Python Packages)
  • Makefile : used to cerate a new environment, install dependencies, lint project files
  • make_prediction.sh : used to make a prediction when app.py is running
  • Dockerfile : contains all the commands to be called on the command line to containerize this application
  • run_docker.sh : Shell script used to deploy the containerized application using Docker
  • upload_docker.sh : Shell script used to upload the built image to docker
  • run_kubernetes.sh : Shell script used to deploy this application using kubectl
  • output_txt_files : contains
    • docker_out.txt : Sample of log output after running a prediction via Docker
    • kubernetes.out.txt : Sample of terminal output after running a prediction via Kubernetes deployment
  • .circleci : contains congif.yml, used to test environment set up with CircleCi

Starting project files : Udacity Project


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
  3. Run in Kubernetes: ./run_kubernetes.sh

Kubernetes Steps

  • Setup and Configure Docker locally
  • Setup and Configure Kubernetes locally
  • Create Flask app in Container
  • Run via kubectl

Authors

  • Mohamed BOUSETTA MAHJOUB - Initial work - MedMahj

opertionalize-a-machine-leraning-microservice-api's People

Contributors

medmahj avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.