# xadityaxyz/k8-cicd-pipeline architecture

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

- Interactive diagram: https://gitdiagram.com/xadityaxyz/k8-cicd-pipeline
- Repository: https://github.com/xadityaxyz/k8-cicd-pipeline

## Overview

This repository combines a React Prime-style browsing interface with AWS infrastructure and a documented CI/CD-to-Kubernetes deployment workflow. The user-facing path is browser → React app → header, home carousel, and content carousel, which render locally defined titles and images. The README describes a separate delivery path through Jenkins analysis, image build and ECR publication, then Terraform-provisioned EKS and ArgoCD deployment. Frontend edges are supported by the sampled source and SOURCE INDEX; deployment links rely on README statements because the pipeline and infrastructure sources were not sampled.

Main entry points: [`src/components/HomeCarousel.jsx`](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/HomeCarousel.jsx) (Featured carousel), [`src/components/App.jsx`](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/App.jsx) (App shell), [`src/components/HeaderComp.jsx`](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/HeaderComp.jsx) (Navigation header), [`src/components/ContentCarousel.jsx`](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/ContentCarousel.jsx) (Popular carousel)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Browsing interface"]
  node_entry["React entry<br/>[index.js]"]
  node_app["App shell<br/>[App.jsx]"]
  node_header["Navigation header<br/>[HeaderComp.jsx]"]
  node_categories["Genre menu items"]
  node_categorydata["Genre definitions<br/>[Categories.js]"]
  node_languages["Language options<br/>[Languages.js]"]
  node_body["Browse body<br/>[BodyComp.jsx]"]
  node_footer["Page footer<br/>[FooterComp.jsx]"]
end

subgraph group_content["Catalog presentation"]
  node_homecarousel["Featured carousel<br/>[HomeCarousel.jsx]"]
  node_hometiles["Featured title tiles<br/>[HomeTile.jsx]"]
  node_homedata["Featured catalog data<br/>[HomeTileData.js]"]
  node_contentcarousel["Popular carousel"]
  node_contenttiles["Poster tiles<br/>[ContentTile.jsx]"]
  node_contentdata["Popular catalog data<br/>[ContentTileData.js]"]
  node_arrows["Carousel controls"]
  node_navitems["Carousel navigation<br/>[NavUl.jsx]"]
end

subgraph group_delivery["Build and release"]
  node_jenkins["Jenkins pipeline"]
  node_quality["Analysis and scans"]
  node_imagebuild["Docker image build"]
  node_ecr[("AWS ECR")]
  node_cleanup["Image cleanup"]
end

subgraph group_platform["AWS platform"]
  node_ec2["EC2 tooling host"]
  node_eks["EKS infrastructure"]
  node_manifests["Kubernetes manifests"]
  node_argocd["ArgoCD deployment"]
  node_cluster["AWS EKS cluster"]
end

node_viewer(("Viewer"))
node_browser(("Web browser"))
node_jenkinsactor(("Jenkins operator"))
node_aws["AWS"]

node_viewer -->|"browses"| node_browser
node_browser -->|"loads app"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_body
node_app -->|"renders"| node_footer
node_header -->|"renders"| node_categories
node_header -->|"reads"| node_categorydata
node_header -->|"uses"| node_languages
node_body -->|"renders"| node_homecarousel
node_body -->|"renders"| node_contentcarousel
node_homecarousel -->|"maps data"| node_homedata
node_homecarousel -->|"renders"| node_hometiles
node_homecarousel -->|"renders"| node_arrows
node_homecarousel -->|"renders"| node_navitems
node_contentcarousel -->|"maps data"| node_contentdata
node_contentcarousel -->|"renders"| node_contenttiles
node_contentcarousel -->|"renders"| node_arrows
node_jenkinsactor -.->|"runs pipeline"| node_jenkins
node_jenkins -.->|"runs checks"| node_quality
node_jenkins -.->|"builds image"| node_imagebuild
node_imagebuild -.->|"pushes image"| node_ecr
node_jenkins -.->|"cleans images"| node_cleanup
node_aws -.->|"provisions"| node_ec2
node_aws -.->|"provisions"| node_eks
node_eks -.->|"creates cluster"| node_cluster
node_argocd -.->|"applies manifests"| node_manifests
node_argocd -.->|"deploys to"| node_cluster

click node_entry "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/index.js"
click node_app "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/App.jsx"
click node_header "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/HeaderComp.jsx"
click node_categories "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/HeaderCategoryLi.jsx"
click node_categorydata "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/Categories.js"
click node_languages "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/Languages.js"
click node_body "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/BodyComp.jsx"
click node_homecarousel "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/HomeCarousel.jsx"
click node_hometiles "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/HomeTile.jsx"
click node_homedata "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/HomeTileData.js"
click node_contentcarousel "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/ContentCarousel.jsx"
click node_contenttiles "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/ContentTile.jsx"
click node_contentdata "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/ContentTileData.js"
click node_arrows "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/LeftArrowButton.jsx"
click node_navitems "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/NavUl.jsx"
click node_footer "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/FooterComp.jsx"
click node_jenkins "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/pipeline_script/build_pipeline"
click node_quality "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/pipeline_script/build_pipeline"
click node_imagebuild "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/pipeline_script/build_pipeline"
click node_cleanup "https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/pipeline_script/cleanup_pipeline"
click node_ec2 "https://github.com/xadityaxyz/k8-cicd-pipeline/tree/master/terraform_code/ec2_server"
click node_eks "https://github.com/xadityaxyz/k8-cicd-pipeline/tree/master/terraform_code/eks_code"
click node_manifests "https://github.com/xadityaxyz/k8-cicd-pipeline/tree/master/k8s_files"

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_entry,node_app,node_header,node_categories,node_categorydata,node_languages,node_body,node_footer,node_viewer,node_browser toneBlue
class node_homecarousel,node_hometiles,node_homedata,node_contentcarousel,node_contenttiles,node_contentdata,node_arrows,node_navitems toneAmber
class node_jenkins,node_quality,node_imagebuild,node_ecr,node_cleanup toneMint
class node_ec2,node_eks,node_manifests,node_argocd,node_cluster toneRose
class node_jenkinsactor,node_aws toneIndigo
```

## Components

### Browsing interface

- [React entry](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/index.js): `src/index.js`
- [App shell](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/App.jsx): `src/components/App.jsx`
- [Navigation header](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/HeaderComp.jsx): `src/components/HeaderComp.jsx`
- [Genre menu items](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/HeaderCategoryLi.jsx): `src/components/HeaderCategoryLi.jsx`
- [Genre definitions](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/Categories.js): `src/components/Categories.js`
- [Language options](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/Languages.js): `src/components/Languages.js`
- [Browse body](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/BodyComp.jsx): `src/components/BodyComp.jsx`
- [Page footer](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/FooterComp.jsx): `src/components/FooterComp.jsx`

### Catalog presentation

- [Featured carousel](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/HomeCarousel.jsx): `src/components/HomeCarousel.jsx`
- [Featured title tiles](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/HomeTile.jsx): `src/components/HomeTile.jsx`
- [Featured catalog data](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/HomeTileData.js): `src/components/HomeTileData.js`
- [Popular carousel](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/ContentCarousel.jsx): `src/components/ContentCarousel.jsx`
- [Poster tiles](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/ContentTile.jsx): `src/components/ContentTile.jsx`
- [Popular catalog data](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/ContentTileData.js): `src/components/ContentTileData.js`
- [Carousel controls](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/LeftArrowButton.jsx): `src/components/LeftArrowButton.jsx`
- [Carousel navigation](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/src/components/NavUl.jsx): `src/components/NavUl.jsx`

### Build and release

- [Jenkins pipeline](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/pipeline_script/build_pipeline): `pipeline_script/build_pipeline`
- [Analysis and scans](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/pipeline_script/build_pipeline): `pipeline_script/build_pipeline`
- [Docker image build](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/pipeline_script/build_pipeline): `pipeline_script/build_pipeline`
- **AWS ECR**
- [Image cleanup](https://github.com/xadityaxyz/k8-cicd-pipeline/blob/master/pipeline_script/cleanup_pipeline): `pipeline_script/cleanup_pipeline`

### AWS platform

- [EC2 tooling host](https://github.com/xadityaxyz/k8-cicd-pipeline/tree/master/terraform_code/ec2_server): `terraform_code/ec2_server`
- [EKS infrastructure](https://github.com/xadityaxyz/k8-cicd-pipeline/tree/master/terraform_code/eks_code): `terraform_code/eks_code`
- [Kubernetes manifests](https://github.com/xadityaxyz/k8-cicd-pipeline/tree/master/k8s_files): `k8s_files`
- **ArgoCD deployment**
- **AWS EKS cluster**

### Other components

- **Viewer**
- **Web browser**
- **Jenkins operator**
- **AWS**

## Connections

- Viewer → Web browser: browses
- Web browser → React entry: loads app (evidence: `src/index.js`)
- React entry → App shell: renders (evidence: `src/index.js`)
- App shell → Navigation header: renders (evidence: `src/components/App.jsx`)
- App shell → Browse body: renders (evidence: `src/components/App.jsx`)
- App shell → Page footer: renders (evidence: `src/components/App.jsx`)
- Navigation header → Genre menu items: renders (evidence: `src/components/HeaderComp.jsx`)
- Navigation header → Genre definitions: reads (evidence: `src/components/HeaderComp.jsx`)
- Navigation header → Language options: uses (evidence: `src/components/HeaderComp.jsx`)
- Browse body → Featured carousel: renders (evidence: `src/components/BodyComp.jsx`)
- Browse body → Popular carousel: renders (evidence: `src/components/BodyComp.jsx`)
- Featured carousel → Featured catalog data: maps data (evidence: `src/components/HomeCarousel.jsx`)
- Featured carousel → Featured title tiles: renders (evidence: `src/components/HomeCarousel.jsx`)
- Featured carousel → Carousel controls: renders (evidence: `src/components/HomeCarousel.jsx`)
- Featured carousel → Carousel navigation: renders (evidence: `src/components/HomeCarousel.jsx`)
- Popular carousel → Popular catalog data: maps data (evidence: `src/components/ContentCarousel.jsx`)
- Popular carousel → Poster tiles: renders (evidence: `src/components/ContentCarousel.jsx`)
- Popular carousel → Carousel controls: renders (evidence: `src/components/ContentCarousel.jsx`)
- Jenkins operator → Jenkins pipeline: runs pipeline (evidence: `README.md`)
- Jenkins pipeline → Analysis and scans: runs checks (evidence: `README.md`)
- Jenkins pipeline → Docker image build: builds image (evidence: `README.md`)
- Docker image build → AWS ECR: pushes image (evidence: `README.md`)
- Jenkins pipeline → Image cleanup: cleans images (evidence: `README.md`)
- AWS → EC2 tooling host: provisions (evidence: `README.md`)
- AWS → EKS infrastructure: provisions (evidence: `README.md`)
- EKS infrastructure → AWS EKS cluster: creates cluster (evidence: `README.md`)
- ArgoCD deployment → Kubernetes manifests: applies manifests (evidence: `README.md`)
- ArgoCD deployment → AWS EKS cluster: deploys to (evidence: `README.md`)
