# manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project architecture

> Architecture diagram of the GitHub repository manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-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/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project
- Repository: https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project

## Overview

This repository is a learning project for deploying two Tetris web-app versions on AWS EKS with a DevSecOps toolchain. Its intended workflow is infrastructure provisioning, application build and security checks, then Kubernetes delivery. The tree contains Terraform, Jenkins pipeline code, and both apps, but no Kubernetes manifests or ArgoCD configuration despite the README’s description. App relationships below use sampled source or the SOURCE INDEX; deployment and scanning links are documented at a high level or left unverified.

Main entry points: [`01-Infrastructure/environments`](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/environments) (Environment stacks), [`03-Application/Tetris-V2/src/components/Game/index.js`](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/components/Game/index.js) (V2 game loop), [`03-Application/Tetris-V1/src/components/Game.js`](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V1/src/components/Game.js) (V1 game UI), [`Jenkins-Pipeline-Code`](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/Jenkins-Pipeline-Code) (Build pipelines)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_infra["AWS infrastructure"]
  node_envs["Environment stacks"]
  node_network["VPC networking"]
  node_cluster["EKS cluster"]
  node_nodes["Worker nodes"]
  node_iam["IAM policies"]
  node_kms["KMS encryption"]
  node_sg["Security groups"]
  node_addons["EKS add-ons"]
end

subgraph group_delivery["CI/CD and security"]
  node_jenkins["Jenkins host"]
  node_pipelines["Build pipelines"]
  node_scanner["Security scanners"]
  node_registry[("Container registry")]
  node_argocd["ArgoCD delivery"]
end

subgraph group_v1["Tetris V1"]
  node_v1ui["V1 game UI<br/>[Game.js]"]
  node_v1engine["V1 game state<br/>[State.js]"]
  node_v1pieces["V1 pieces<br/>[Piece.js]"]
  node_v1render["V1 board rendering<br/>[Helpers.js]"]
  node_v1next["V1 next-piece view<br/>[Next.js]"]
end

subgraph group_v2["Tetris V2"]
  node_v2app["V2 app entry<br/>[App.js]"]
  node_v2game["V2 game loop<br/>[index.js]"]
  node_v2stage["V2 play stage<br/>[index.js]"]
  node_v2timer["Interval hook<br/>[useInterval.js]"]
  node_v2dimensions["Viewport sizing"]
  node_v2loss["Game-over view<br/>[index.js]"]
  node_v2utils["Board utilities<br/>[Utils.js]"]
end

node_developer(("Project user"))

node_developer -->|"provisions environments"| node_envs
node_envs -.->|"configures networking"| node_network
node_envs -->|"provisions EKS"| node_cluster
node_envs -.->|"configures nodes"| node_nodes
node_envs -.->|"configures IAM"| node_iam
node_envs -.->|"configures encryption"| node_kms
node_envs -.->|"configures access"| node_sg
node_cluster -.->|"extends cluster"| node_addons
node_developer -->|"uses automation"| node_jenkins
node_jenkins -->|"runs pipelines"| node_pipelines
node_pipelines -.->|"runs security checks"| node_scanner
node_pipelines -.->|"publishes images"| node_registry
node_argocd -.->|"delivers applications"| node_cluster
node_v1ui -->|"reads game state"| node_v1engine
node_v1engine -->|"creates pieces"| node_v1pieces
node_v1ui -->|"renders board"| node_v1render
node_v1ui -->|"renders preview"| node_v1next
node_v1next -->|"creates preview matrix"| node_v1render
node_v1render -->|"renders piece cells"| node_v1pieces
node_v2app -->|"renders game"| node_v2game
node_v2game -->|"schedules game ticks"| node_v2timer
node_v2game -->|"maps player to board"| node_v2utils
node_v2game -->|"passes game state"| node_v2stage
node_v2stage -->|"reads viewport size"| node_v2dimensions
node_v2stage -->|"renders loss overlay"| node_v2loss
node_developer -->|"plays game"| node_v1ui
node_developer -->|"plays game"| node_v2app

click node_envs "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/environments"
click node_network "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/modules/networking"
click node_cluster "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/modules/eks-cluster"
click node_nodes "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/modules/node-groups"
click node_iam "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/modules/iam"
click node_kms "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/modules/kms"
click node_sg "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/modules/security-groups"
click node_addons "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/02-eks-addons"
click node_jenkins "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/Jenkins-Server-TF"
click node_pipelines "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/Jenkins-Pipeline-Code"
click node_v1ui "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V1/src/components/Game.js"
click node_v1engine "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V1/src/tetris/State.js"
click node_v1pieces "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V1/src/tetris/Piece.js"
click node_v1render "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V1/src/helpers/Helpers.js"
click node_v1next "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V1/src/components/Next.js"
click node_v2app "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/App.js"
click node_v2game "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/components/Game/index.js"
click node_v2stage "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/components/Stage/index.js"
click node_v2timer "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/hooks/useInterval.js"
click node_v2dimensions "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/hooks/useWindowDimensions.js"
click node_v2loss "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/components/LoseGame/index.js"
click node_v2utils "https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/utils/Utils.js"

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_envs,node_network,node_cluster,node_nodes,node_iam,node_kms,node_sg,node_addons,node_developer toneBlue
class node_jenkins,node_pipelines,node_scanner,node_registry,node_argocd toneAmber
class node_v1ui,node_v1engine,node_v1pieces,node_v1render,node_v1next toneMint
class node_v2app,node_v2game,node_v2stage,node_v2timer,node_v2dimensions,node_v2loss,node_v2utils toneRose
```

## Components

### AWS infrastructure

- [Environment stacks](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/environments): `01-Infrastructure/environments`
- [VPC networking](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/modules/networking): `01-Infrastructure/modules/networking`
- [EKS cluster](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/modules/eks-cluster): `01-Infrastructure/modules/eks-cluster`
- [Worker nodes](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/modules/node-groups): `01-Infrastructure/modules/node-groups`
- [IAM policies](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/modules/iam): `01-Infrastructure/modules/iam`
- [KMS encryption](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/modules/kms): `01-Infrastructure/modules/kms`
- [Security groups](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/01-Infrastructure/modules/security-groups): `01-Infrastructure/modules/security-groups`
- [EKS add-ons](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/02-eks-addons): `02-eks-addons`

### CI/CD and security

- [Jenkins host](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/Jenkins-Server-TF): `Jenkins-Server-TF`
- [Build pipelines](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/tree/main/Jenkins-Pipeline-Code): `Jenkins-Pipeline-Code`
- **Security scanners**
- **Container registry**
- **ArgoCD delivery**

### Tetris V1

- [V1 game UI](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V1/src/components/Game.js): `03-Application/Tetris-V1/src/components/Game.js`
- [V1 game state](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V1/src/tetris/State.js): `03-Application/Tetris-V1/src/tetris/State.js`
- [V1 pieces](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V1/src/tetris/Piece.js): `03-Application/Tetris-V1/src/tetris/Piece.js`
- [V1 board rendering](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V1/src/helpers/Helpers.js): `03-Application/Tetris-V1/src/helpers/Helpers.js`
- [V1 next-piece view](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V1/src/components/Next.js): `03-Application/Tetris-V1/src/components/Next.js`

### Tetris V2

- [V2 app entry](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/App.js): `03-Application/Tetris-V2/src/App.js`
- [V2 game loop](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/components/Game/index.js): `03-Application/Tetris-V2/src/components/Game/index.js`
- [V2 play stage](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/components/Stage/index.js): `03-Application/Tetris-V2/src/components/Stage/index.js`
- [Interval hook](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/hooks/useInterval.js): `03-Application/Tetris-V2/src/hooks/useInterval.js`
- [Viewport sizing](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/hooks/useWindowDimensions.js): `03-Application/Tetris-V2/src/hooks/useWindowDimensions.js`
- [Game-over view](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/components/LoseGame/index.js): `03-Application/Tetris-V2/src/components/LoseGame/index.js`
- [Board utilities](https://github.com/manojsiriparthi/end-to-end-kubernetes-devsecops-tetris-project/blob/main/03-Application/Tetris-V2/src/utils/Utils.js): `03-Application/Tetris-V2/src/utils/Utils.js`

### Other components

- **Project user**

## Connections

- Project user → Environment stacks: provisions environments (evidence: `README.md`)
- Environment stacks → VPC networking: configures networking
- Environment stacks → EKS cluster: provisions EKS (evidence: `README.md`)
- Environment stacks → Worker nodes: configures nodes
- Environment stacks → IAM policies: configures IAM
- Environment stacks → KMS encryption: configures encryption
- Environment stacks → Security groups: configures access
- EKS cluster → EKS add-ons: extends cluster
- Project user → Jenkins host: uses automation (evidence: `README.md`)
- Jenkins host → Build pipelines: runs pipelines (evidence: `README.md`)
- Build pipelines → Security scanners: runs security checks
- Build pipelines → Container registry: publishes images
- ArgoCD delivery → EKS cluster: delivers applications
- V1 game UI → V1 game state: reads game state (evidence: `03-Application/Tetris-V1/src/components/Game.js`)
- V1 game state → V1 pieces: creates pieces (evidence: `03-Application/Tetris-V1/src/tetris/State.js`)
- V1 game UI → V1 board rendering: renders board (evidence: `03-Application/Tetris-V1/src/components/Game.js`)
- V1 game UI → V1 next-piece view: renders preview (evidence: `03-Application/Tetris-V1/src/components/Game.js`)
- V1 next-piece view → V1 board rendering: creates preview matrix (evidence: `03-Application/Tetris-V1/src/components/Next.js`)
- V1 board rendering → V1 pieces: renders piece cells (evidence: `03-Application/Tetris-V1/src/helpers/Helpers.js`)
- V2 app entry → V2 game loop: renders game (evidence: `03-Application/Tetris-V2/src/App.js`)
- V2 game loop → Interval hook: schedules game ticks (evidence: `03-Application/Tetris-V2/src/components/Game/index.js`)
- V2 game loop → Board utilities: maps player to board (evidence: `03-Application/Tetris-V2/src/components/Game/index.js`)
- V2 game loop → V2 play stage: passes game state (evidence: `03-Application/Tetris-V2/src/components/Game/index.js`)
- V2 play stage → Viewport sizing: reads viewport size (evidence: `03-Application/Tetris-V2/src/components/Stage/index.js`)
- V2 play stage → Game-over view: renders loss overlay (evidence: `03-Application/Tetris-V2/src/components/Stage/index.js`)
- Project user → V1 game UI: plays game (evidence: `README.md`)
- Project user → V2 app entry: plays game (evidence: `README.md`)
