DevOps (Day-84): Project-5: Deploy a Netflix Application Clone using Kubernetes
Day 84: #90DaysOfDevOpsChallenge
Table of contents
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.
Pre-requistes:-
1 Create an EC2 instance with t2.medium configuration in the AWS Management console.
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.
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:-
4 Check the kubectl installation status in the server.
Check the kubectl installation status in the server Diagram.
Project Steps:-
1 Get Code from GitHub and Clone in the EC2 instance.
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.
Clone the git url of Netflix Daiagram.
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.
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.
Docker ps Diagram.
3 Push the image to the DockerHub repository. You can follow my previous docker blogs to get the detailed steps:
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/
Now create the Deployment yaml file Diagram
Now create the Deployment yaml file Diagram.
5 Run and check the successful running of Deployment in the instance.
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/
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.
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.
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 ๐