# amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project architecture

> Architecture diagram of the GitHub repository amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project
- Repository: https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project

## Overview

This repository combines a React task-list app and Express/MongoDB API with infrastructure and deployment materials for AWS EKS. The user workflow runs from the browser through task operations to persistent MongoDB records; the backend also exposes health/readiness endpoints. README-documented Jenkins automation and AWS provisioning support deployment, while Kubernetes manifests describe the application rollout. Monitoring and ArgoCD are mentioned, but no corresponding implementation files appear in the tree, so they are not mapped as components. Deployment relationships below are based on README statements; unsampled manifest and pipeline details are not inferred.

Main entry points: [`Application-Code/backend/index.js`](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/backend/index.js) (Express API), [`Application-Code/frontend/src/index.js`](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/frontend/src/index.js) (React entry), [`Application-Code/frontend/src/App.js`](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/frontend/src/App.js) (Task interface), [`Application-Code/frontend/src/Tasks.js`](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/frontend/src/Tasks.js) (Task actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Task application"]
  node_webentry["React entry<br/>[index.js]"]
  node_taskui["Task interface<br/>[App.js]"]
  node_taskstate["Task actions<br/>[Tasks.js]"]
  node_httpclient["Task HTTP client<br/>[taskServices.js]"]
end

subgraph group_backend["Task API and data"]
  node_api["Express API<br/>[index.js]"]
  node_routes["Task routes<br/>[tasks.js]"]
  node_model["Task model<br/>[task.js]"]
  node_dbconnect["DB connection<br/>[db.js]"]
end

subgraph group_delivery["CI and provisioning"]
  node_jenkins["Jenkins pipelines"]
  node_jenkinstf["Jenkins AWS host<br/>[ec2.tf]"]
end

subgraph group_cluster["Kubernetes deployment"]
  node_manifests["App manifests"]
end

node_user(("User"))
node_mongodb[("MongoDB")]
node_aws["AWS infrastructure"]
node_eks["AWS EKS"]

node_user -->|"uses"| node_webentry
node_webentry -->|"renders"| node_taskui
node_taskui -->|"extends"| node_taskstate
node_taskstate -->|"calls"| node_httpclient
node_httpclient -->|"HTTP requests"| node_api
node_api -->|"mounts"| node_routes
node_api -->|"connects"| node_dbconnect
node_routes -->|"queries"| node_model
node_model -.->|"persists records"| node_mongodb
node_dbconnect -->|"connects"| node_mongodb
node_jenkins -->|"automates deployment"| node_aws
node_jenkinstf -->|"provisions host"| node_aws
node_manifests -->|"deploys application"| node_eks
node_aws -->|"hosts cluster"| node_eks

click node_webentry "https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/frontend/src/index.js"
click node_taskui "https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/frontend/src/App.js"
click node_taskstate "https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/frontend/src/Tasks.js"
click node_httpclient "https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/frontend/src/services/taskServices.js"
click node_api "https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/backend/index.js"
click node_routes "https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/backend/routes/tasks.js"
click node_model "https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/backend/models/task.js"
click node_dbconnect "https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/backend/db.js"
click node_jenkins "https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/tree/master/Jenkins-Pipeline-Code"
click node_jenkinstf "https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Jenkins-Server-TF/ec2.tf"
click node_manifests "https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/tree/master/Kubernetes-Manifests-file"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_webentry,node_taskui,node_taskstate,node_httpclient,node_user toneBlue
class node_api,node_routes,node_model,node_dbconnect,node_mongodb toneAmber
class node_jenkins,node_jenkinstf toneMint
class node_manifests toneRose
class node_aws,node_eks toneIndigo
```

## Components

### Task application

- [React entry](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/frontend/src/index.js): `Application-Code/frontend/src/index.js`
- [Task interface](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/frontend/src/App.js): `Application-Code/frontend/src/App.js`
- [Task actions](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/frontend/src/Tasks.js): `Application-Code/frontend/src/Tasks.js`
- [Task HTTP client](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/frontend/src/services/taskServices.js): `Application-Code/frontend/src/services/taskServices.js`

### Task API and data

- [Express API](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/backend/index.js): `Application-Code/backend/index.js`
- [Task routes](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/backend/routes/tasks.js): `Application-Code/backend/routes/tasks.js`
- [Task model](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/backend/models/task.js): `Application-Code/backend/models/task.js`
- [DB connection](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Application-Code/backend/db.js): `Application-Code/backend/db.js`

### CI and provisioning

- [Jenkins pipelines](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/tree/master/Jenkins-Pipeline-Code): `Jenkins-Pipeline-Code`
- [Jenkins AWS host](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/blob/master/Jenkins-Server-TF/ec2.tf): `Jenkins-Server-TF/ec2.tf`

### Kubernetes deployment

- [App manifests](https://github.com/amanpathak-devops/end-to-end-kubernetes-three-tier-devsecops-project/tree/master/Kubernetes-Manifests-file): `Kubernetes-Manifests-file`

### Other components

- **User**
- **MongoDB**
- **AWS infrastructure**
- **AWS EKS**

## Connections

- User → React entry: uses (evidence: `README.md`)
- React entry → Task interface: renders (evidence: `Application-Code/frontend/src/index.js`)
- Task interface → Task actions: extends (evidence: `Application-Code/frontend/src/App.js`)
- Task actions → Task HTTP client: calls (evidence: `Application-Code/frontend/src/Tasks.js`)
- Task HTTP client → Express API: HTTP requests (evidence: `README.md`)
- Express API → Task routes: mounts (evidence: `Application-Code/backend/index.js`)
- Express API → DB connection: connects (evidence: `Application-Code/backend/index.js`)
- Task routes → Task model: queries (evidence: `Application-Code/backend/routes/tasks.js`)
- Task model → MongoDB: persists records
- DB connection → MongoDB: connects (evidence: `Application-Code/backend/db.js`)
- Jenkins pipelines → AWS infrastructure: automates deployment (evidence: `README.md`)
- Jenkins AWS host → AWS infrastructure: provisions host (evidence: `README.md`)
- App manifests → AWS EKS: deploys application (evidence: `README.md`)
- AWS infrastructure → AWS EKS: hosts cluster (evidence: `README.md`)
