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 https://medium.com/analytics-vidhya/create 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
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
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.