# maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project architecture

> Architecture diagram of the GitHub repository maryammairaj123/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-09). It is an AI-made overview: check details against the source.

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

## Overview

This repository combines a React task manager and Express/MongoDB API with deployment infrastructure and CI/CD configuration for AWS EKS. The user workflow is to view, add, complete, or delete tasks: the UI delegates operations to its task-state handlers, which call an HTTP service; the API routes perform database operations. The README also documents Jenkins pipelines, Terraform provisioning, Kubernetes deployment, ArgoCD GitOps, and Prometheus/Grafana monitoring. Those operational relationships are summarized from the README; their implementation details were not sampled.

Main entry points: [`Kubernetes-Manifests-file`](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/tree/main/Kubernetes-Manifests-file) (Kubernetes workloads), [`Application-Code/backend/index.js`](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/backend/index.js) (API server), [`Application-Code/frontend/src/App.js`](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/frontend/src/App.js) (Task interface), [`Application-Code/frontend/src/Tasks.js`](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/frontend/src/Tasks.js) (Task handlers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["Task application"]
  node_task_ui["Task interface<br/>[App.js]"]
  node_task_state["Task handlers<br/>[Tasks.js]"]
  node_task_http["Task HTTP client<br/>[taskServices.js]"]
  node_api_server["API server<br/>[index.js]"]
  node_task_routes["Task routes<br/>[tasks.js]"]
  node_task_model["Task model<br/>[task.js]"]
  node_db_connection["DB connection<br/>[db.js]"]
  node_mongodb[("MongoDB")]
end

subgraph group_platform["AWS platform"]
  node_jenkins_host["Jenkins host provisioning"]
  node_eks_infra["EKS provisioning"]
end

subgraph group_delivery["Deployment delivery"]
  node_jenkins["Jenkins pipelines"]
  node_k8s_app["Kubernetes workloads"]
end

subgraph group_operations["Monitoring and GitOps"]
  node_argocd["ArgoCD GitOps"]
  node_monitoring["Prometheus and Grafana"]
end

node_user(("User"))
node_user_browser(("Browser"))

node_user -->|"uses"| node_task_ui
node_task_ui -->|"inherits handlers"| node_task_state
node_task_state -->|"calls task APIs"| node_task_http
node_task_http -.->|"sends HTTP requests"| node_api_server
node_api_server -->|"mounts routes"| node_task_routes
node_api_server -->|"connects on startup"| node_db_connection
node_task_routes -->|"queries and saves"| node_task_model
node_task_model -->|"defines persisted model"| node_mongodb
node_db_connection -->|"connects"| node_mongodb
node_jenkins -.->|"automates deployment"| node_k8s_app
node_jenkins_host -.->|"provisions host"| node_jenkins
node_eks_infra -.->|"hosts workloads"| node_k8s_app
node_argocd -.->|"syncs deployments"| node_k8s_app
node_monitoring -.->|"monitors workloads"| node_k8s_app

click node_task_ui "https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/frontend/src/App.js"
click node_task_state "https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/frontend/src/Tasks.js"
click node_task_http "https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/frontend/src/services/taskServices.js"
click node_api_server "https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/backend/index.js"
click node_task_routes "https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/backend/routes/tasks.js"
click node_task_model "https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/backend/models/task.js"
click node_db_connection "https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/backend/db.js"
click node_jenkins "https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/tree/main/Jenkins-Pipeline-Code"
click node_jenkins_host "https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/tree/main/Jenkins-Server-TF"
click node_eks_infra "https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/tree/main/eks"
click node_k8s_app "https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/tree/main/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_task_ui,node_task_state,node_task_http,node_api_server,node_task_routes,node_task_model,node_db_connection,node_mongodb,node_user,node_user_browser toneBlue
class node_jenkins_host,node_eks_infra toneAmber
class node_jenkins,node_k8s_app toneMint
class node_argocd,node_monitoring toneRose
```

## Components

### Task application

- [Task interface](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/frontend/src/App.js): `Application-Code/frontend/src/App.js`
- [Task handlers](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/frontend/src/Tasks.js): `Application-Code/frontend/src/Tasks.js`
- [Task HTTP client](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/frontend/src/services/taskServices.js): `Application-Code/frontend/src/services/taskServices.js`
- [API server](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/backend/index.js): `Application-Code/backend/index.js`
- [Task routes](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/backend/routes/tasks.js): `Application-Code/backend/routes/tasks.js`
- [Task model](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/backend/models/task.js): `Application-Code/backend/models/task.js`
- [DB connection](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/blob/main/Application-Code/backend/db.js): `Application-Code/backend/db.js`
- **MongoDB**

### AWS platform

- [Jenkins host provisioning](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/tree/main/Jenkins-Server-TF): `Jenkins-Server-TF`
- [EKS provisioning](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/tree/main/eks): `eks`

### Deployment delivery

- [Jenkins pipelines](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/tree/main/Jenkins-Pipeline-Code): `Jenkins-Pipeline-Code`
- [Kubernetes workloads](https://github.com/maryammairaj123/end-to-end-kubernetes-three-tier-devsecops-project/tree/main/Kubernetes-Manifests-file): `Kubernetes-Manifests-file`

### Monitoring and GitOps

- **ArgoCD GitOps**
- **Prometheus and Grafana**

### Other components

- **User**
- **Browser**

## Connections

- User → Task interface: uses (evidence: `README.md`)
- Task interface → Task handlers: inherits handlers (evidence: `Application-Code/frontend/src/App.js`)
- Task handlers → Task HTTP client: calls task APIs (evidence: `Application-Code/frontend/src/Tasks.js`)
- Task HTTP client → API server: sends HTTP requests
- API server → Task routes: mounts routes (evidence: `Application-Code/backend/index.js`)
- API server → DB connection: connects on startup (evidence: `Application-Code/backend/index.js`)
- Task routes → Task model: queries and saves (evidence: `Application-Code/backend/routes/tasks.js`)
- Task model → MongoDB: defines persisted model (evidence: `Application-Code/backend/models/task.js`)
- DB connection → MongoDB: connects (evidence: `Application-Code/backend/db.js`)
- Jenkins pipelines → Kubernetes workloads: automates deployment (evidence: `README.md`)
- Jenkins host provisioning → Jenkins pipelines: provisions host (evidence: `README.md`)
- EKS provisioning → Kubernetes workloads: hosts workloads (evidence: `README.md`)
- ArgoCD GitOps → Kubernetes workloads: syncs deployments (evidence: `README.md`)
- Prometheus and Grafana → Kubernetes workloads: monitors workloads (evidence: `README.md`)
