# nishi-panchal/docker-gke-project architecture

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

- Interactive diagram: https://gitdiagram.com/nishi-panchal/docker-gke-project
- Repository: https://github.com/nishi-panchal/docker-gke-project

## Overview

This repository is a small Next.js app accompanied by a deployment guide. Its user-to-result workflow is to package the app in Docker, deploy it to GKE, and configure ArgoCD to sync from Git. The sampled app is a simple home page with a root layout; the README documents the deployment stages, while the tree contains a Kubernetes Deployment manifest. ArgoCD configuration is not present in the tree, so its documented role is shown without inventing a repository path.

Main entry points: [`app/page.tsx`](https://github.com/nishi-panchal/docker-gke-project/blob/main/app/page.tsx) (Home page), [`app/layout.tsx`](https://github.com/nishi-panchal/docker-gke-project/blob/main/app/layout.tsx) (Root layout), [`Dockerfile`](https://github.com/nishi-panchal/docker-gke-project/blob/main/Dockerfile) (Docker image), [`k8s/deployment.yaml`](https://github.com/nishi-panchal/docker-gke-project/blob/main/k8s/deployment.yaml) (Kubernetes Deployment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web app"]
  node_home["Home page<br/>[page.tsx]"]
  node_root["Root layout<br/>[layout.tsx]"]
end

subgraph group_container["Container packaging"]
  node_docker["Docker image"]
  node_registry[("Container registry")]
end

subgraph group_deploy["Deployment"]
  node_manifest["Kubernetes Deployment<br/>[deployment.yaml]"]
  node_gke["GKE cluster"]
  node_pods["App pods"]
  node_argocd["ArgoCD"]
end

node_visitor(("App visitor"))
node_git[("Git repository")]

node_visitor -->|"views"| node_home
node_root -->|"renders"| node_home
node_docker -->|"pushes image"| node_registry
node_registry -->|"supplies image"| node_gke
node_manifest -->|"configures"| node_gke
node_gke -->|"runs replicas"| node_pods
node_git -->|"connects repository"| node_argocd
node_argocd -->|"syncs deployments"| node_gke

click node_home "https://github.com/nishi-panchal/docker-gke-project/blob/main/app/page.tsx"
click node_root "https://github.com/nishi-panchal/docker-gke-project/blob/main/app/layout.tsx"
click node_docker "https://github.com/nishi-panchal/docker-gke-project/blob/main/Dockerfile"
click node_manifest "https://github.com/nishi-panchal/docker-gke-project/blob/main/k8s/deployment.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_home,node_root toneBlue
class node_docker,node_registry,node_git toneAmber
class node_manifest,node_gke,node_pods,node_argocd toneMint
class node_visitor toneIndigo
```

## Components

### Web app

- [Home page](https://github.com/nishi-panchal/docker-gke-project/blob/main/app/page.tsx): `app/page.tsx`
- [Root layout](https://github.com/nishi-panchal/docker-gke-project/blob/main/app/layout.tsx): `app/layout.tsx`

### Container packaging

- [Docker image](https://github.com/nishi-panchal/docker-gke-project/blob/main/Dockerfile): `Dockerfile`
- **Container registry**

### Deployment

- [Kubernetes Deployment](https://github.com/nishi-panchal/docker-gke-project/blob/main/k8s/deployment.yaml): `k8s/deployment.yaml`
- **GKE cluster**
- **App pods**
- **ArgoCD**

### Other components

- **App visitor**
- **Git repository**

## Connections

- App visitor → Home page: views (evidence: `app/page.tsx`)
- Root layout → Home page: renders (evidence: `app/layout.tsx`)
- Docker image → Container registry: pushes image (evidence: `README.md`)
- Container registry → GKE cluster: supplies image (evidence: `README.md`)
- Kubernetes Deployment → GKE cluster: configures (evidence: `README.md`)
- GKE cluster → App pods: runs replicas (evidence: `README.md`)
- Git repository → ArgoCD: connects repository (evidence: `README.md`)
- ArgoCD → GKE cluster: syncs deployments (evidence: `README.md`)
