Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nirmalnaveen20/netflix-k8
Project centers around creating a Netflix clone web application and deploying it on a Kubernetes cluster
https://github.com/nirmalnaveen20/netflix-k8
aws ciccd devops docker kubernetes
Last synced: 2 days ago
JSON representation
Project centers around creating a Netflix clone web application and deploying it on a Kubernetes cluster
- Host: GitHub
- URL: https://github.com/nirmalnaveen20/netflix-k8
- Owner: NirmalNaveen20
- Created: 2023-12-14T11:44:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-16T13:37:35.000Z (about 1 year ago)
- Last Synced: 2023-12-17T12:34:30.004Z (about 1 year ago)
- Topics: aws, ciccd, devops, docker, kubernetes
- Language: TypeScript
- Homepage:
- Size: 6.91 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web application deploy into Kubernetes cluster
Understanding Kubernetes:
Kubernetes, often abbreviated as K8s, is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications.
It abstracts the underlying infrastructure and provides a unified API to manage clusters of containers effectively. With Kubernetes, developers can focus on building applications without worrying about the complexities of deployment and scaling.
## Steps
#### Step 1. Create ec2 instance and installations
Use name as you preferd i used Netflix-serverType is (AMI- Ubuntu 22.04, Type- t2.medium)
Install updates. (sudo apt-get update)
Install Docker. [Docker installation doumentaion](https://docs.docker.com/engine/install/ubuntu/)
Give permission to Docker (sudo usermod -aG docker $USER && newgrp docker)
Minikube and Kubectl installation Install Docker. [Minikube installation doumentaion](https://www.linuxtechi.com/how-to-install-minikube-on-ubuntu/)
`sudo docker --version`
`sudo minikube version`
`sudo Kubectl version`
#### Step 1. Clone the repository to ec2
```
git clone https://github.com/NirmalNaveen20/netflix-k8.git
```#### Step 2. Create a image and push to the docker hub
```
sudo docker build -t nteflix-app .
````sudo docker login`
Provide your docker hub credentials
Push image to the docker hub
`sudo docker push `
#### Step 3. Create Deployment.yml and Service.yml files for Deployments
```
sudo kubectl apply -f deployment.yml
``````
sudo kubectl apply -f service.yml
```#### Step 4. Get the URL and curl it to check the website accessibility.
```
sudo minikube service netflix-app --url
```check accessibility
`curl -L `
Check with Public URL and we can now see the Netflix APP running on the server.
## Author
- [@Nirmal Naveen](https://www.nirmalnaveen.com/)
![Logo](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTlPjhPV6D68kBoBq82reUr6ndqcI_n9YPSQ9WA3sqT_RAXpDVcujzTO1MmWrcmcGYeyA&usqp=CAU)