Sign inSign up

sumitsaiwal/fibonacci_flask

By sumitsaiwal

Updated over 5 years ago

Image
0

634

sumitsaiwal/fibonacci_flask repository overview

fibonacci_flask_kubernetes

A sample python flask api, which returns n'th fibonacci number.

This is a tutorial project, which demonstrates lifecycle of a microservice in terms of DevOps.

##Topics Covered in the project

  • sample api : flask
  • unit test : pytest
  • integration test : pytest
  • api test : tavern, pytest
  • build : docker
  • continuous integration : github action, docker-compose
  • Deployment : kubernetes

Multistage dockerfile is used to run the test and build.

Since flask sever is recomended only for development purposes, the app runs on gunicorn. This application can be deployed in kubernetes as a multicontainer pod (nginx as sidecar) with the following command:

kubectl create -f fibonacci-k8s.yaml

references:

ToDo:

  • swagger api docs
  • authorization
  • logger >> stdout
  • openapi specification

Tag summary

Content type

Image

Digest

Size

345.3 MB

Last updated

about 6 years ago

docker pull sumitsaiwal/fibonacci_flask