The NGINX Ingress Controller for Kubernetes provides enterprise‑grade delivery services for Kubernetes applications, with benefits for users of both NGINX Open Source and NGINX Plus. With the NGINX Ingress Controller for Kubernetes, you get basic load balancing, SSL/TLS termination, support for URI rewrites, and upstream SSL/TLS encryption. NGINX Plus users additionally get session persistence for stateful applications and JSON Web Token (JWT) authentication for APIs.

First lets create two simple flask service using the below two code snippets.

Once we have the two flask apps ready, we can create two docker image for the respective python files. You can refer to do-a-docker-image-e285e1a2ee4e article if you need any help in creating docker for a simple flask service. …

Kubernetes is an open-source container-orchestration system for automating computer application deployment, scaling, and management

Image for post
Image for post

One of the advantages of using containers is that , it can be scaled up or down depending on the demand. From a business point of view, this will ensure that change in incoming traffic can be met without much of a hardship.

NOTE : From a Micro-service point of view, there are two types of applications : Stateless and Stateful . In a Stateful application, the server stores data (for eg. Database ) and in a stateless application server doesn’t store any data ( for eg. front end application build using angular). …

Docker enables developers to easily pack, ship, and run any application as a lightweight, portable, self-sufficient container, which can run virtually anywhere. … Containers do this by enabling developers to isolate code into a single container. This makes it easier to modify and update the program

Image for post
Image for post

Lets start by defining a docker file. It is a simple file which includes details about base image, dependencies and command line argument (if needed).The below docker file is to create simple python based docker image.

Steve George

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store