Coder Social home page Coder Social logo

alexioannides / kubernetes-mlops Goto Github PK

View Code? Open in Web Editor NEW
355.0 15.0 100.0 185 KB

MLOps tutorial using Python, Docker and Kubernetes.

Home Page: https://alexioannides.com/2019/01/10/deploying-python-ml-models-with-flask-docker-and-kubernetes/

License: MIT License

Dockerfile 16.90% Python 83.10%
python flask machine-learning kubernetes seldon-core docker helm mlops seldon cloud-platform

kubernetes-mlops's Introduction

alexioannides

Python source code for generating my personal website - hosted by GitHub pages at alexioannides.github.io - using the Pelican framework for static websites, together with Flex theme.

The output of the build process is written to the output folder in the root directory, that is not version controlled using this repository. Instead, the output directory has its own repository at alexioannides, that is necessary for hosting with GitHub pages.

Development Setup

The package's 3rd party dependencies are described in requirements.txt. Create a new virtual environment and install these dependencies as follows,

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Building the Website

To build the website we need to call Pelican,

pelican

Testing the Site Locally

We recommend setting RELATIVE_URLS = True when testing (do not forget to revert this before deploying) and then executing the following,

pelican --listen output

A test version of the website will then be available at http://localhost:8000.

Deploying to GitHub Pages

After testing locally, first of all ensure that RELATIVE_URLS = False, rebuilding the website if necessary. Then, make sure that you are still in the output directory and remember that this is version controlled by a different repository, that now needs new changes to be committed and pushed to master as usual - e.g.,

git add -A
git commit -m "latest changes to alexioannides.github.io"
git push origin master

The updated website is usually available within a minute or two.

kubernetes-mlops's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kubernetes-mlops's Issues

Local host can't open after loading a docker image to container

Hello all,
I was following the repo at https://github.com/AlexIoannides/kubernetes-mlops to learn MLops with docker and kubernetes. After l loaded the image by typing in windows powershell:
docker run --rm --name test-api -p 5000:5000 -d alexioannides/test-ml-score-api
The image was loaded as a container.

image

However, when I try to click the link and open the local host at http://localhost:5000/
It shows:
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Can anyone help? Thanks a lot.

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.