# pandacloud1/devopsproject1 architecture

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

- Interactive diagram: https://gitdiagram.com/pandacloud1/devopsproject1
- Repository: https://github.com/pandacloud1/devopsproject1

## Overview

This repository is a small Java web service packaged and deployed through a Jenkins-led DevOps workflow, with Terraform-provisioned EC2 hosts and Kubernetes manifests. The documented path runs CI, triggers CD after a stable build, and makes the service available through the node server. README statements establish the infrastructure and pipeline relationships; source excerpts show only the Spring Boot application, so implementation details inside the pipelines, Terraform, and manifests are not verified.

Main entry points: [`Jenkinsfile-CI`](https://github.com/pandacloud1/devopsproject1/blob/main/Jenkinsfile-CI) (CI pipeline), [`Jenkinsfile-CD`](https://github.com/pandacloud1/devopsproject1/blob/main/Jenkinsfile-CD) (CD pipeline), [`terraform_files`](https://github.com/pandacloud1/devopsproject1/tree/main/terraform_files) (Infrastructure provisioning), [`deployment.yaml`](https://github.com/pandacloud1/devopsproject1/blob/main/deployment.yaml) (Workload deployment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["Web application"]
  node_service["Welcome service"]
end

subgraph group_delivery["CI/CD delivery"]
  node_ci["CI pipeline"]
  node_cd["CD pipeline"]
  node_image["Container packaging"]
end

subgraph group_infrastructure["Cloud infrastructure"]
  node_terraform["Infrastructure provisioning"]
  node_master["Master server"]
  node_node["Node server"]
end

subgraph group_deployment["Kubernetes deployment"]
  node_k8s_deployment["Workload deployment<br/>[deployment.yaml]"]
  node_k8s_service["Service exposure<br/>[service.yaml]"]
end

node_visitor(("Browser user"))
node_github(("GitHub"))

node_visitor -->|"requests page"| node_service
node_github -->|"triggers changes"| node_ci
node_ci -->|"triggers when stable"| node_cd
node_ci -.->|"builds project"| node_image
node_cd -.->|"deploys application"| node_k8s_deployment
node_terraform -->|"creates server"| node_master
node_terraform -->|"creates server"| node_node
node_master -->|"runs pipeline"| node_ci
node_cd -->|"targets server"| node_node
node_k8s_deployment -.->|"exposes workload"| node_k8s_service
node_visitor -->|"accesses node port"| node_k8s_service

click node_service "https://github.com/pandacloud1/devopsproject1/blob/main/src/main/java/com/javatechie/DevopsIntegrationApplication.java"
click node_ci "https://github.com/pandacloud1/devopsproject1/blob/main/Jenkinsfile-CI"
click node_cd "https://github.com/pandacloud1/devopsproject1/blob/main/Jenkinsfile-CD"
click node_image "https://github.com/pandacloud1/devopsproject1/blob/main/Dockerfile"
click node_terraform "https://github.com/pandacloud1/devopsproject1/tree/main/terraform_files"
click node_master "https://github.com/pandacloud1/devopsproject1/tree/main/terraform_files"
click node_node "https://github.com/pandacloud1/devopsproject1/tree/main/terraform_files"
click node_k8s_deployment "https://github.com/pandacloud1/devopsproject1/blob/main/deployment.yaml"
click node_k8s_service "https://github.com/pandacloud1/devopsproject1/blob/main/service.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_service,node_visitor toneBlue
class node_ci,node_cd,node_image toneAmber
class node_terraform,node_master,node_node toneMint
class node_k8s_deployment,node_k8s_service toneRose
class node_github toneIndigo
```

## Components

### Web application

- [Welcome service](https://github.com/pandacloud1/devopsproject1/blob/main/src/main/java/com/javatechie/DevopsIntegrationApplication.java): `src/main/java/com/javatechie/DevopsIntegrationApplication.java`

### CI/CD delivery

- [CI pipeline](https://github.com/pandacloud1/devopsproject1/blob/main/Jenkinsfile-CI): `Jenkinsfile-CI`
- [CD pipeline](https://github.com/pandacloud1/devopsproject1/blob/main/Jenkinsfile-CD): `Jenkinsfile-CD`
- [Container packaging](https://github.com/pandacloud1/devopsproject1/blob/main/Dockerfile): `Dockerfile`

### Cloud infrastructure

- [Infrastructure provisioning](https://github.com/pandacloud1/devopsproject1/tree/main/terraform_files): `terraform_files`
- [Master server](https://github.com/pandacloud1/devopsproject1/tree/main/terraform_files): `terraform_files`
- [Node server](https://github.com/pandacloud1/devopsproject1/tree/main/terraform_files): `terraform_files`

### Kubernetes deployment

- [Workload deployment](https://github.com/pandacloud1/devopsproject1/blob/main/deployment.yaml): `deployment.yaml`
- [Service exposure](https://github.com/pandacloud1/devopsproject1/blob/main/service.yaml): `service.yaml`

### Other components

- **Browser user**
- **GitHub**

## Connections

- Browser user → Welcome service: requests page (evidence: `src/main/java/com/javatechie/DevopsIntegrationApplication.java`)
- GitHub → CI pipeline: triggers changes (evidence: `README.md`)
- CI pipeline → CD pipeline: triggers when stable (evidence: `README.md`)
- CI pipeline → Container packaging: builds project
- CD pipeline → Workload deployment: deploys application
- Infrastructure provisioning → Master server: creates server (evidence: `README.md`)
- Infrastructure provisioning → Node server: creates server (evidence: `README.md`)
- Master server → CI pipeline: runs pipeline (evidence: `README.md`)
- CD pipeline → Node server: targets server (evidence: `README.md`)
- Workload deployment → Service exposure: exposes workload
- Browser user → Service exposure: accesses node port (evidence: `README.md`)
