# tarunre12/nexusdeploy architecture

> Architecture diagram of the GitHub repository tarunre12/nexusdeploy, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tarunre12/nexusdeploy
- Repository: https://github.com/tarunre12/nexusdeploy

## Overview

NexusDeploy is documented as a push-to-production platform: a developer change is tested, packaged, published, and rolled out to Kubernetes, with infrastructure provisioning and operational monitoring as supporting branches. The Flask service exposes health and API endpoints; Kubernetes and Helm configuration describe deployment and exposure, while Prometheus/Grafana/Slack are documented operational integrations. The README describes Terraform and monitoring components that are not fully present in the supplied tree, so those nodes use only supported paths or null. Source excerpts cover only the Flask app and dependencies; other relationships shown are documented in the README, not verified against their implementation.

Main entry points: [`Jenkinsfile`](https://github.com/tarunre12/nexusdeploy/blob/main/Jenkinsfile) (Jenkins pipeline), [`app/app.py`](https://github.com/tarunre12/nexusdeploy/blob/main/app/app.py) (Flask service), [`k8s/nexusdeploy-chart/templates/deployment.yaml`](https://github.com/tarunre12/nexusdeploy/blob/main/k8s/nexusdeploy-chart/templates/deployment.yaml) (Helm deployment), [`app/test_app.py`](https://github.com/tarunre12/nexusdeploy/blob/main/app/test_app.py) (Unit tests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_delivery["CI/CD delivery"]
  node_jenkins["Jenkins pipeline"]
  node_tests["Unit tests<br/>[test_app.py]"]
  node_docker["Docker image build"]
end

subgraph group_service["Application service"]
  node_app["Flask service<br/>[app.py]"]
  node_health["Health endpoint<br/>[app.py]"]
  node_api["API endpoint<br/>[app.py]"]
end

subgraph group_cluster["Kubernetes deployment"]
  node_eks["Amazon EKS"]
  node_helm["Helm deployment<br/>[deployment.yaml]"]
  node_service_exposure["Service exposure<br/>[service.yaml]"]
  node_ingress["Ingress and routes<br/>[ingress.yaml]"]
  node_scaling["Autoscaling<br/>[hpa.yaml]"]
end

subgraph group_operations["Infrastructure and observability"]
  node_alerts_config["Alert rules<br/>[alerts.yaml]"]
  node_terraform["AWS provisioning"]
  node_prometheus["Prometheus metrics"]
  node_grafana["Grafana dashboards"]
  node_alertmanager["Alertmanager"]
end

node_developer(("Developer"))
node_github["GitHub repository"]
node_ecr[("Amazon ECR")]
node_slack["Slack alerts"]

node_developer -->|"pushes code"| node_github
node_github -->|"triggers webhook"| node_jenkins
node_jenkins -->|"runs tests"| node_tests
node_jenkins -->|"builds image"| node_docker
node_jenkins -->|"pushes image"| node_ecr
node_jenkins -->|"deploys with Helm"| node_helm
node_ecr -->|"image pull"| node_eks
node_helm -->|"configures rollout"| node_eks
node_app -->|"serves route"| node_health
node_app -->|"serves route"| node_api
node_eks -->|"exposes service"| node_service_exposure
node_eks -.->|"routes traffic"| node_ingress
node_eks -->|"scales workloads"| node_scaling
node_terraform -->|"provisions cluster"| node_eks
node_terraform -->|"provisions registry"| node_ecr
node_eks -->|"provides metrics"| node_prometheus
node_prometheus -->|"feeds dashboards"| node_grafana
node_prometheus -->|"evaluates rules"| node_alerts_config
node_prometheus -->|"sends alerts"| node_alertmanager
node_alertmanager -->|"notifies channel"| node_slack

click node_jenkins "https://github.com/tarunre12/nexusdeploy/blob/main/Jenkinsfile"
click node_tests "https://github.com/tarunre12/nexusdeploy/blob/main/app/test_app.py"
click node_docker "https://github.com/tarunre12/nexusdeploy/blob/main/app/Dockerfile"
click node_app "https://github.com/tarunre12/nexusdeploy/blob/main/app/app.py"
click node_health "https://github.com/tarunre12/nexusdeploy/blob/main/app/app.py"
click node_api "https://github.com/tarunre12/nexusdeploy/blob/main/app/app.py"
click node_helm "https://github.com/tarunre12/nexusdeploy/blob/main/k8s/nexusdeploy-chart/templates/deployment.yaml"
click node_service_exposure "https://github.com/tarunre12/nexusdeploy/blob/main/k8s/nexusdeploy-chart/templates/service.yaml"
click node_ingress "https://github.com/tarunre12/nexusdeploy/blob/main/k8s/nexusdeploy-chart/templates/ingress.yaml"
click node_scaling "https://github.com/tarunre12/nexusdeploy/blob/main/k8s/nexusdeploy-chart/templates/hpa.yaml"
click node_alerts_config "https://github.com/tarunre12/nexusdeploy/blob/main/k8s/alerts.yaml"

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_jenkins,node_tests,node_docker toneBlue
class node_app,node_health,node_api,node_ecr toneAmber
class node_eks,node_helm,node_service_exposure,node_ingress,node_scaling toneMint
class node_alerts_config,node_terraform,node_prometheus,node_grafana,node_alertmanager toneRose
class node_developer,node_github,node_slack toneIndigo
```

## Components

### CI/CD delivery

- [Jenkins pipeline](https://github.com/tarunre12/nexusdeploy/blob/main/Jenkinsfile): `Jenkinsfile`
- [Unit tests](https://github.com/tarunre12/nexusdeploy/blob/main/app/test_app.py): `app/test_app.py`
- [Docker image build](https://github.com/tarunre12/nexusdeploy/blob/main/app/Dockerfile): `app/Dockerfile`

### Application service

- [Flask service](https://github.com/tarunre12/nexusdeploy/blob/main/app/app.py): `app/app.py`
- [Health endpoint](https://github.com/tarunre12/nexusdeploy/blob/main/app/app.py): `app/app.py`
- [API endpoint](https://github.com/tarunre12/nexusdeploy/blob/main/app/app.py): `app/app.py`

### Kubernetes deployment

- **Amazon EKS**
- [Helm deployment](https://github.com/tarunre12/nexusdeploy/blob/main/k8s/nexusdeploy-chart/templates/deployment.yaml): `k8s/nexusdeploy-chart/templates/deployment.yaml`
- [Service exposure](https://github.com/tarunre12/nexusdeploy/blob/main/k8s/nexusdeploy-chart/templates/service.yaml): `k8s/nexusdeploy-chart/templates/service.yaml`
- [Ingress and routes](https://github.com/tarunre12/nexusdeploy/blob/main/k8s/nexusdeploy-chart/templates/ingress.yaml): `k8s/nexusdeploy-chart/templates/ingress.yaml`
- [Autoscaling](https://github.com/tarunre12/nexusdeploy/blob/main/k8s/nexusdeploy-chart/templates/hpa.yaml): `k8s/nexusdeploy-chart/templates/hpa.yaml`

### Infrastructure and observability

- [Alert rules](https://github.com/tarunre12/nexusdeploy/blob/main/k8s/alerts.yaml): `k8s/alerts.yaml`
- **AWS provisioning**
- **Prometheus metrics**
- **Grafana dashboards**
- **Alertmanager**

### Other components

- **Developer**
- **GitHub repository**
- **Amazon ECR**
- **Slack alerts**

## Connections

- Developer → GitHub repository: pushes code (evidence: `README.md`)
- GitHub repository → Jenkins pipeline: triggers webhook (evidence: `README.md`)
- Jenkins pipeline → Unit tests: runs tests (evidence: `README.md`)
- Jenkins pipeline → Docker image build: builds image (evidence: `README.md`)
- Jenkins pipeline → Amazon ECR: pushes image (evidence: `README.md`)
- Jenkins pipeline → Helm deployment: deploys with Helm (evidence: `README.md`)
- Amazon ECR → Amazon EKS: image pull (evidence: `README.md`)
- Helm deployment → Amazon EKS: configures rollout (evidence: `README.md`)
- Flask service → Health endpoint: serves route (evidence: `app/app.py`)
- Flask service → API endpoint: serves route (evidence: `app/app.py`)
- Amazon EKS → Service exposure: exposes service (evidence: `README.md`)
- Amazon EKS → Ingress and routes: routes traffic (evidence: `README.md`)
- Amazon EKS → Autoscaling: scales workloads (evidence: `README.md`)
- AWS provisioning → Amazon EKS: provisions cluster (evidence: `README.md`)
- AWS provisioning → Amazon ECR: provisions registry (evidence: `README.md`)
- Amazon EKS → Prometheus metrics: provides metrics (evidence: `README.md`)
- Prometheus metrics → Grafana dashboards: feeds dashboards (evidence: `README.md`)
- Prometheus metrics → Alert rules: evaluates rules (evidence: `README.md`)
- Prometheus metrics → Alertmanager: sends alerts (evidence: `README.md`)
- Alertmanager → Slack alerts: notifies channel (evidence: `README.md`)
