DevOps (Day-84): Project-5: Deploy a Netflix Application Clone using Kubernetes

DevOps (Day-84): Project-5: Deploy a Netflix Application Clone using Kubernetes

Day 84: #90DaysOfDevOpsChallenge

ยท

4 min read

Dear Learner's in today topic we will explain how to deploy a Netflix Web Application with the help of Kubernetes Cluster.

Project Description:-

The Project involves deploying a Netflix clone web application on Kubernetes cluster,a popular container orchestration platform that simplifies the deployment and management of containerized applications. The Project will require creating Docker images of the web applications. The Project will require creating Docker images of the web application and its dependencies and deploying them onto the kubernetes cluster using Kubernetes manifests. The Kubernetes cluster will provide benfits such as high avaliability, scalability and automativ failover of the application. Additionally the project will utilize kubernetes tools such as Kubernetes Dashboard and Kubectl to monitor and manage the Deployed application. Overall the project aims to demonstrate the power and benefits of Kubernetes for deploying and managing containerized applications at scale.

  1. Pre-requistes:-

1 Create an EC2 instance with t2.medium configuration in the AWS Management console.

No alt text provided for this image

Create an EC2 instance with t2.medium configuration in the AWS Management console Diagram.

2 Install the Docker in the EC2 instance. Check the running status in the server.

No alt text provided for this image

Install the Docker in the EC2 instance. Check the running status in the server Diagram.

3 Install Kubernetes in the EC2 instance along with Kubectl utility in the server. you can follow my previous Kubernetes blog in the below link:-

https://www.linkedin.com/pulse/day-31-task-launching-your-first-kubernetes-cluster-nginx-singh/?trackingId=7KuBpatzSKunlWbknRx67g%3D%3D

4 Check the kubectl installation status in the server.

No alt text provided for this image

Check the kubectl installation status in the server Diagram.

  1. Project Steps:-

1 Get Code from GitHub and Clone in the EC2 instance.

No alt text provided for this image

Get Code from GitHub and Clone in the EC2 instance Diagram

2 Make sure you have already written the docker file. Create an image out of Docker file and create and run the container out of it.

No alt text provided for this image

Clone the git url of Netflix Daiagram.

No alt text provided for this image

Make sure you have already written the docker file. Create an image out of Docker file and create and run the container out of it Diagram.

No alt text provided for this image

Make sure you have already written the docker file. Create an image out of Docker file and create and run the container out of it Diagram.

No alt text provided for this image

Docker ps Diagram.

3 Push the image to the DockerHub repository. You can follow my previous docker blogs to get the detailed steps:

No alt text provided for this image

Push the image to the DockerHub repository. You can follow my previous docker blogs to get the detailed steps Diagram.

4 Now create the Deployment yaml file.

You can direct copy the syntax form these URL:-

https://kubernetes.io/docs/concepts/workloads/controllers/deployment/

No alt text provided for this image

Now create the Deployment yaml file Diagram

No alt text provided for this image

Now create the Deployment yaml file Diagram.

5 Run and check the successful running of Deployment in the instance.

No alt text provided for this image

Run and check the successful running of Deployment in the instance Diagram.

6 Create a Service.yaml file to connect the node port and access the url from the outside world.

You can direct copy the syntax form these URL:-

https://kubernetes.io/docs/concepts/services-networking/service/

No alt text provided for this image

Create a Service.yaml file to connect the node port and access the url from the outside world Diagram.

7 Run and check the successful running of service in the instance.

No alt text provided for this image

Run and check the successful running of service in the instance Daigram.

8 Get the URL and CURL it to check the website accessibility.

9 Check the Public URL and we can now see the Netflix APP running on the 4 Server.

No alt text provided for this image

Check the Public URL and we can now see the Netflix APP running on the 4 Server Diagram.

10 This Netflix app shows all the current data running on the actual Netflix app. This is achieved by configuring API Key While Creating the container.

Next Topic:-

Day 85: Explain the Deploying a Node JS app with the help of AWS ECS Fargate and AWS ECR.

Thank you for reading!! Hope you find this helpful.

#day84challenge#90daysofdevops

Always open to suggestions..!!

~ Manoj Bhamidipati ๐Ÿ™‚

ย