3 tire web application deployment using docker
3 tire web application deployment using docker and kubernetes

In this tutorial, we will learn how to deploy a 3-tier web application using Docker and Kubernetes. We will create a simple Node.js web application and deploy it on a 3-tier architecture:

1. Frontend (Web Server): This will be a web server that serves our web application's static files (HTML, CSS, JavaScript).
2. Backend (API Server): This will be a Node.js server that handles API requests and communicates with the database.
3. Database (MongoDB): We will use MongoDB as our database to store data.

Let's get started!

## Prerequisites

Before you start, make sure you have the following tools installed:

1. Docker: https://docs.docker.com/get-docker/
2. Kubernetes: https://kubernetes.io/docs/tasks/tools/install-kubectl/
3. Minikube: https://kubernetes.io/docs/tasks/tools/install-minikube/

## Step 1: Create the Web Application

First, let's create a simple web application. We will create a new directory for our project and navigate into it:

```bash
mkdir 3tier-app && cd 3tier-app
``
1. Create a docker image with the tire web application.
2. Deploy the docker image in a container.
3. Deploy the tire web application on a host machine using the container.