Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.38
1.0.39
3 changes: 2 additions & 1 deletion demo-javaapp/src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
<body>
<div class="container">
<h1>Hello, <span style="color: #FFD700;">TreeLeaf.ai</span>! </h1>
<p>Looking forward to working with the team. From Prod Environment treeleafai</p>
<p>Looking forward to working with the team. </p>
<p>Looking forward to working with the team. </p>
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion helm/demo-javaapp/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ replicaCount: 1

image:
repository: sangamghimire/demo-javaapp
tag: dev-1.0.37
tag: dev-1.0.39
pullPolicy: Always

service:
Expand Down
66 changes: 3 additions & 63 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,67 +58,6 @@ DevSecOps-FullJavaPipeline/
- Creates VPC, EKS, IAM roles, node groups etc. using modules in Terraform

### 4. **Monitoring Stack (Prometheus, Grafana, Loki)**
- Deployed via Helm and ArgoCD
- Loki + promtail for logs, Prometheus for metrics
- Dashboards in Grafana for CPU usage and logs

### 5. **Horizontal Pod Autoscaling (HPA)**

- Configured in Helm
- CPU and memory-based autoscaling
- Resource requests and limits optimized
- Clean logic using Helm conditionals

### 6. **Docker Image Optimization**

- Multistage Docker build
- Small base image
- Only necessary files copied

### 7. **Security & High Availability**

- HPA ensures scalability
- Multiple replicas + probes = HA
- Node pool auto-scaling via EKS
- Can include `network policies` and `RBAC` if required

---

## 🛠️ Custom Configuration / Scripts

- Utility Script

---

## 📦 CI/CD Pipeline Flow

1. **Developer pushes code** to GitHub
2. **GitHub Actions** builds JAR, builds/pushes Docker image (tests can also be added)
3. ArgoCD watches Git repo for manifest changes
4. ArgoCD syncs Helm release to EKS
5. Prometheus/Grafana collects metrics, HPA auto-scales if needed

---

## 📊 Monitoring & Observability

- **Grafana Dashboards:**
- Logs (Loki)
- CPU usage per pod (Prometheus)
- **Alertmanager** configured for basic alerts
- **Prometheus Node Exporter** deployed via `kube-prometheus-stack`

---

## 🔐 Security Considerations

- RBAC policies for ArgoCD and workloads
- ServiceAccounts for Prometheus/Grafana
- Docker image with limited layers
- Probes prevent bad containers from receiving traffic

---
=======

- Deployed via Helm and ArgoCD
- Loki + promtail for logs, Prometheus for metrics
Expand All @@ -133,7 +72,7 @@ DevSecOps-FullJavaPipeline/

### 6. **Docker Image Optimization**

- Multistage Docker build
- Multistage Docker build åç
- Small base image
- Only necessary files copied

Expand Down Expand Up @@ -180,10 +119,11 @@ DevSecOps-FullJavaPipeline/
- Probes prevent bad containers from receiving traffic

---

## Deployment URLs

- https://argocd.cloudandcosmos.com

- https://app-dev.cloudandcosmos.com

- https://app-prod.cloudandcosmos.com
- https://app-prod.cloudandcosmos.com