Configuration of Kubernetes (k8) services with NGINX Ingress controller

Steve George
Analytics Vidhya
Published in
5 min readNov 2, 2020

--

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.

Once the docker images for the two service are created, lets push the image to kubernetes pod using below…

--

--

Steve George
Analytics Vidhya

Machine Learning Architect | Data Science | MLOps| Microsoft Azure Certified | AWS Certified | DevOps