Skip to content

Commit 8d622c7

Browse files
authored
Write Readmefile
1 parent 1174335 commit 8d622c7

1 file changed

Lines changed: 180 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
# 🚀 End-to-End DevOps CI/CD Pipeline using Docker, Kubernetes, Helm & GitHub Actions
2+
3+
An end-to-end DevOps project that automates the deployment of a containerized Node.js application on Kubernetes using Docker, Amazon ECR, Helm, and GitHub Actions.
4+
5+
The project demonstrates a complete CI/CD workflow—from writing code to automatically building Docker images, pushing them to Amazon ECR, and deploying the latest version to a Kubernetes cluster using Helm.
6+
7+
---
8+
9+
# 📌 Why I Built This Project
10+
11+
Deploying applications manually is time-consuming and error-prone.
12+
13+
The goal of this project was to understand how modern DevOps teams automate software delivery using containers, Kubernetes, CI/CD pipelines, and monitoring tools.
14+
15+
This project helped me gain hands-on experience with real-world deployment workflows instead of only running applications locally.
16+
17+
---
18+
19+
# 🛠️ Tech Stack
20+
21+
- Node.js
22+
- Docker
23+
- Amazon ECR
24+
- Kubernetes
25+
- Helm
26+
- GitHub Actions
27+
- NGINX Ingress
28+
- Prometheus
29+
- Grafana
30+
- AWS EC2
31+
- Minikube
32+
33+
---
34+
35+
# 🏗️ Architecture
36+
37+
```text
38+
Developer
39+
│
40+
▼
41+
GitHub Repository
42+
│
43+
▼
44+
GitHub Actions
45+
(Build & Push Docker Image)
46+
│
47+
▼
48+
Amazon ECR
49+
│
50+
▼
51+
Helm Upgrade
52+
│
53+
▼
54+
Kubernetes Cluster
55+
│
56+
┌─────────────┐
57+
│ Deployment │
58+
└─────────────┘
59+
│
60+
▼
61+
Service
62+
│
63+
▼
64+
NGINX Ingress
65+
│
66+
▼
67+
Application
68+
69+
Prometheus
70+
│
71+
▼
72+
Grafana Dashboard
73+
```
74+
75+
---
76+
77+
# ⚙️ CI/CD Workflow
78+
79+
1. Developer pushes code to GitHub.
80+
2. GitHub Actions automatically builds the Docker image.
81+
3. The image is pushed to Amazon ECR.
82+
4. GitHub Actions connects to the Kubernetes server.
83+
5. ECR credentials are refreshed automatically.
84+
6. Helm upgrades the application deployment.
85+
7. Kubernetes pulls the latest Docker image.
86+
8. The updated application becomes available without manual deployment.
87+
88+
---
89+
90+
# ✨ Features
91+
92+
- Dockerized Node.js application
93+
- Automated Docker image build
94+
- Private image storage using Amazon ECR
95+
- Kubernetes Deployment & Service
96+
- Helm chart for reusable deployments
97+
- Automated CI/CD using GitHub Actions
98+
- NGINX Ingress configuration
99+
- Prometheus & Grafana monitoring
100+
- Automatic ECR authentication refresh
101+
- Rolling updates using Kubernetes
102+
103+
---
104+
105+
# 📂 Project Structure
106+
107+
```
108+
.
109+
├── .github/
110+
│ └── workflows/
111+
│ └── ci-cd.yml
112+
├── nodeapp/
113+
│ ├── templates/
114+
├── deployment.yml
115+
├── service.yml
116+
│ ├── Chart.yaml
117+
│ └── values.yaml
118+
├── Dockerfile
119+
├── index.js
120+
└── package.json
121+
```
122+
123+
---
124+
125+
# 📸 Screenshots
126+
127+
## GitHub Actions Pipeline
128+
129+
> Add screenshot here
130+
131+
---
132+
133+
## Kubernetes Pods
134+
135+
> Add screenshot here
136+
137+
---
138+
139+
## Grafana Dashboard
140+
141+
> Add screenshot here
142+
143+
---
144+
145+
## Application Running
146+
147+
> Add screenshot here
148+
149+
---
150+
151+
# 📚 What I Learned
152+
153+
During this project, I learned how to:
154+
155+
- Containerize applications using Docker
156+
- Push private images to Amazon ECR
157+
- Deploy applications on Kubernetes
158+
- Package Kubernetes resources using Helm
159+
- Build CI/CD pipelines using GitHub Actions
160+
- Configure NGINX Ingress
161+
- Monitor Kubernetes using Prometheus & Grafana
162+
- Troubleshoot real deployment issues such as ImagePullBackOff, private ECR authentication, and rollout failures
163+
164+
---
165+
166+
# 🚀 Future Improvements
167+
168+
- Deploy on Amazon EKS instead of Minikube
169+
- Configure a custom domain using Route 53
170+
- Enable HTTPS with Let's Encrypt
171+
- Replace SSH deployment with GitOps using ArgoCD
172+
- Provision infrastructure using Terraform
173+
174+
---
175+
176+
# 👨‍💻 Author
177+
178+
**Utsav**
179+
180+
Feel free to connect or suggest improvements.

0 commit comments

Comments
 (0)