# gc-ghub/project-gc-industries-devops-superheros architecture

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

- Interactive diagram: https://gitdiagram.com/gc-ghub/project-gc-industries-devops-superheros
- Repository: https://github.com/gc-ghub/project-gc-industries-devops-superheros

## Overview

#### 1. Purpose and top-level entry points
This is a production-style “SuperHero Shop” microservices system plus a Kubernetes platform/GitOps toolkit. Primary runtime entry points are the service programs, local Compose stack, Helm/Kustomize manifests, and a Go operator CLI:
- `docker-compose.yml`
- `gc-industries-devops-superheros/superhero-app-code/frontend/src/main.jsx`
- `gc-industries-devops-superheros/cli/main.go`

#### 2. Polyglot application services
The user-facing React frontend calls independently containerized backend services: Go Catalog, Python/FastAPI Inventory, Node/Express Orders, and active .NET Payment. Catalog is deliberately deployed as v1/v2/v3 for canary routing. Service source and Dockerfiles form the application/build boundary:
- `gc-industries-devops-superheros/superhero-app-code/catalog/main.go`
- `gc-industries-devops-superheros/superhero-app-code/orders/server.js`
- `gc-industries-devops-superheros/superhero-app-code/payment/Payment/Program.cs`

The Java payment implementation is retained as a backup/reference, not the active deployment: `gc-industries-devops-superheros/superhero-app-code/payment-java-backup/`.

#### 3. Kubernetes delivery and traffic boundary
Kubernetes Deployment/Service resources provide workload discovery; Istio Gateway and VirtualService provide the external ingress and routing boundary. Runtime flow is load balancer → Istio ingress → frontend → backend services. Catalog’s DestinationRule/VirtualService configuration enables version-aware traffic shifting:
- `gc-industries-devops-superheros/helm/superheros/templates/deployments/catalog-v1-deployment.yaml`
- `gc-industries-devops-superheros/helm/superheros/istio/virtualservice.yaml`
- `gc-industries-devops-superheros/infra/k8s/istio/catalog-destinationrule.yaml`

The repository supports both Helm-based application deployment and raw Kustomize manifests, which are alternate desired-state representations.

#### 4. GitOps and CI/CD control flow
Per-service GitHub Actions CI workflows build immutable images from path-scoped service changes. CD workflows update Git-managed desired state; Argo CD is intended to reconcile that state into Kubernetes rather than pipelines directly applying manifests:
- `.github/workflows/ci-catalog.yml`
- `.github/workflows/cd-catalog.yml`
- `gc-industries-devops-superheros/infra/argocd/superheros-app.yaml`

This makes Git commits the deployment/rollback boundary and preserves Istio routing controls during application rollouts.

#### 5. Platform bootstrap CLI and declarative app catalog
The Go CLI orchestrates platform lifecycle, application onboarding, deployment, canary operations, policy/image gates, GitOps commits, and observation. App specifications are transformed into app-specific Helm values/Application manifests and GitOps changes:
- `gc-industries-devops-superheros/cli/internal/platform/bootstrap.go`
- `gc-industries-devops-superheros/cli/internal/onboard/onboard.go`
- `gc-industries-devops-superheros/cli/internal/gitops/gitops.go`

The app catalog/spec boundary is represented by:
- `gc-industries-devops-superheros/specs/superheros.yaml`
- `gc-industries-devops-superheros/apps/superheros/application.yaml`
- `gc-industries-devops-superheros/charts/app/templates/deployment.yaml`

#### 6. Platform infrastructure, security, and observability
Target runtimes are local Kind and AWS EKS. Platform installation scripts and component manifests establish Istio networking, Argo CD GitOps, Prometheus/Grafana/Kiali observability, Kyverno policy enforcement, and Alertmanager/Tempo integrations:
- `gc-industries-devops-superheros/platform/scripts/bootstrap-kind.sh`
- `gc-industries-devops-superheros/platform/scripts/bootstrap-eks.sh`
- `gc-industries-devops-superheros/platform/networking/istio/install.sh`

Operational control boundaries include admission policy and monitoring rules:
- `gc-industries-devops-superheros/infra/kyverno_policy/policy-01.yaml`
- `gc-industries-devops-superheros/infra/monitoring/rules/application-alerts.yaml`
- `gc-industries-devops-superheros/infra/istio-addons/kiali.yaml`

Main entry points: [`gc-industries-devops-superheros/superhero-app-code/frontend/src/main.jsx`](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/superhero-app-code/frontend/src/main.jsx) (React frontend), [`gc-industries-devops-superheros/helm/superheros/templates/deployments/catalog-v1-deployment.yaml`](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/helm/superheros/templates/deployments/catalog-v1-deployment.yaml) (Kubernetes workloads), [`gc-industries-devops-superheros/helm/superheros/istio/virtualservice.yaml`](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/helm/superheros/istio/virtualservice.yaml) (Istio ingress & routing), [`gc-industries-devops-superheros/cli/internal/onboard/onboard.go`](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/cli/internal/onboard/onboard.go) (Onboarding pipeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application services"]
  node_compose["Local Compose stack<br/>local runtime<br/>[docker-compose.yml]"]
  node_frontend["React frontend<br/>web client<br/>[main.jsx]"]
  node_catalog["Catalog v1/v2/v3<br/>Go service<br/>[main.go]"]
  node_inventory["Inventory<br/>FastAPI service"]
  node_orders["Orders<br/>Express service<br/>[server.js]"]
  node_payment["Payment<br/>.NET service<br/>[Program.cs]"]
end

subgraph group_delivery["Delivery &amp; traffic"]
  node_k8s{{"Kubernetes workloads<br/>Deployment / Service"}}
  node_istio{{"Istio ingress &amp; routing<br/>Gateway / VirtualService"}}
  node_catalog_traffic["Catalog traffic policy<br/>DestinationRule"]
  node_helm["Helm desired state<br/>application chart"]
  node_kustomize["Kustomize manifests<br/>desired state"]
end

subgraph group_gitops["GitOps &amp; automation"]
  node_ci["Catalog CI<br/>GitHub Actions<br/>[ci-catalog.yml]"]
  node_cd["Catalog CD<br/>GitHub Actions<br/>[cd-catalog.yml]"]
  node_argocd{{"Argo CD<br/>GitOps reconciler"}}
end

subgraph group_platform["Platform controls"]
  node_platform_bootstrap["Kind / EKS bootstrap<br/>platform installer<br/>[bootstrap-kind.sh]"]
  node_policy{{"Kyverno admission policy<br/>policy gate<br/>[policy-01.yaml]"}}
  node_observability["Observability stack"]
end

subgraph group_bootstrap["CLI &amp; app catalog"]
  node_cli["Platform CLI<br/>Go CLI<br/>[main.go]"]
  node_onboarding["Onboarding pipeline<br/>CLI modules<br/>[onboard.go]"]
  node_app_catalog["Superheros app spec<br/>declarative catalog<br/>[superheros.yaml]"]
end

node_compose -->|"runs locally"| node_frontend
node_frontend -->|"calls"| node_catalog
node_frontend -->|"calls"| node_inventory
node_frontend -->|"calls"| node_orders
node_frontend -->|"calls"| node_payment
node_istio -->|"ingress traffic"| node_frontend
node_istio -->|"routes to"| node_k8s
node_catalog_traffic -->|"defines subsets"| node_catalog
node_istio -->|"uses routing policy"| node_catalog_traffic
node_helm -->|"renders workloads"| node_k8s
node_kustomize -.->|"alternative manifests"| node_k8s
node_ci -->|"immutable image"| node_cd
node_cd -->|"commits desired state"| node_helm
node_argocd -->|"reconciles"| node_k8s
node_cli -->|"invokes"| node_onboarding
node_app_catalog -->|"declares app"| node_onboarding
node_onboarding -->|"generates values"| node_helm
node_onboarding -->|"creates application state"| node_argocd
node_platform_bootstrap -->|"installs"| node_istio
node_platform_bootstrap -->|"installs"| node_argocd
node_policy -->|"admission gate"| node_k8s
node_observability -.->|"monitors"| node_k8s
node_observability -.->|"mesh visibility"| node_istio

click node_compose "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/docker-compose.yml"
click node_frontend "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/superhero-app-code/frontend/src/main.jsx"
click node_catalog "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/superhero-app-code/catalog/main.go"
click node_orders "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/superhero-app-code/orders/server.js"
click node_payment "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/superhero-app-code/payment/Payment/Program.cs"
click node_k8s "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/helm/superheros/templates/deployments/catalog-v1-deployment.yaml"
click node_istio "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/helm/superheros/istio/virtualservice.yaml"
click node_catalog_traffic "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/infra/k8s/istio/catalog-destinationrule.yaml"
click node_helm "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/helm/superheros/templates/deployments/catalog-v1-deployment.yaml"
click node_ci "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/.github/workflows/ci-catalog.yml"
click node_cd "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/.github/workflows/cd-catalog.yml"
click node_argocd "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/infra/argocd/superheros-app.yaml"
click node_cli "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/cli/main.go"
click node_onboarding "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/cli/internal/onboard/onboard.go"
click node_app_catalog "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/specs/superheros.yaml"
click node_platform_bootstrap "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/platform/scripts/bootstrap-kind.sh"
click node_policy "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/infra/kyverno_policy/policy-01.yaml"
click node_observability "https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/infra/monitoring/rules/application-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_compose,node_frontend,node_catalog,node_inventory,node_orders,node_payment toneBlue
class node_k8s,node_istio,node_catalog_traffic,node_helm,node_kustomize toneAmber
class node_ci,node_cd,node_argocd toneMint
class node_platform_bootstrap,node_policy,node_observability toneRose
class node_cli,node_onboarding,node_app_catalog toneIndigo
```

## Components

### Application services

- [Local Compose stack](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/docker-compose.yml): local runtime · `docker-compose.yml`
- [React frontend](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/superhero-app-code/frontend/src/main.jsx): web client · `gc-industries-devops-superheros/superhero-app-code/frontend/src/main.jsx`
- [Catalog v1/v2/v3](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/superhero-app-code/catalog/main.go): Go service · Versioned service supports canary traffic shifting. · `gc-industries-devops-superheros/superhero-app-code/catalog/main.go`
- **Inventory**: FastAPI service
- [Orders](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/superhero-app-code/orders/server.js): Express service · `gc-industries-devops-superheros/superhero-app-code/orders/server.js`
- [Payment](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/superhero-app-code/payment/Payment/Program.cs): .NET service · Active payment implementation. · `gc-industries-devops-superheros/superhero-app-code/payment/Payment/Program.cs`

### Delivery & traffic

- [Kubernetes workloads](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/helm/superheros/templates/deployments/catalog-v1-deployment.yaml): Deployment / Service · Workload and service-discovery boundary. · `gc-industries-devops-superheros/helm/superheros/templates/deployments/catalog-v1-deployment.yaml`
- [Istio ingress & routing](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/helm/superheros/istio/virtualservice.yaml): Gateway / VirtualService · Routes external and version-aware catalog traffic. · `gc-industries-devops-superheros/helm/superheros/istio/virtualservice.yaml`
- [Catalog traffic policy](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/infra/k8s/istio/catalog-destinationrule.yaml): DestinationRule · `gc-industries-devops-superheros/infra/k8s/istio/catalog-destinationrule.yaml`
- [Helm desired state](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/helm/superheros/templates/deployments/catalog-v1-deployment.yaml): application chart · Alternative application deployment representation. · `gc-industries-devops-superheros/helm/superheros/templates/deployments/catalog-v1-deployment.yaml`
- **Kustomize manifests**: desired state · Alternative raw Kubernetes representation.

### GitOps & automation

- [Catalog CI](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/.github/workflows/ci-catalog.yml): GitHub Actions · Builds immutable images from path-scoped changes. · `.github/workflows/ci-catalog.yml`
- [Catalog CD](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/.github/workflows/cd-catalog.yml): GitHub Actions · Updates Git-managed desired state. · `.github/workflows/cd-catalog.yml`
- [Argo CD](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/infra/argocd/superheros-app.yaml): GitOps reconciler · Reconciles committed desired state into Kubernetes. · `gc-industries-devops-superheros/infra/argocd/superheros-app.yaml`

### Platform controls

- [Kind / EKS bootstrap](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/platform/scripts/bootstrap-kind.sh): platform installer · Establishes target Kubernetes runtimes and platform components. · `gc-industries-devops-superheros/platform/scripts/bootstrap-kind.sh`
- [Kyverno admission policy](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/infra/kyverno_policy/policy-01.yaml): policy gate · `gc-industries-devops-superheros/infra/kyverno_policy/policy-01.yaml`
- [Observability stack](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/infra/monitoring/rules/application-alerts.yaml): Prometheus / Grafana / Kiali · Monitoring, alerts, tracing, and service-mesh visibility. · `gc-industries-devops-superheros/infra/monitoring/rules/application-alerts.yaml`

### CLI & app catalog

- [Platform CLI](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/cli/main.go): Go CLI · Orchestrates platform lifecycle, onboarding, GitOps, and canary operations. · `gc-industries-devops-superheros/cli/main.go`
- [Onboarding pipeline](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/cli/internal/onboard/onboard.go): CLI modules · Transforms app specs into deployment and GitOps artifacts. · `gc-industries-devops-superheros/cli/internal/onboard/onboard.go`
- [Superheros app spec](https://github.com/gc-ghub/project-gc-industries-devops-superheros/blob/main/gc-industries-devops-superheros/specs/superheros.yaml): declarative catalog · `gc-industries-devops-superheros/specs/superheros.yaml`

## Connections

- Local Compose stack → React frontend: runs locally
- React frontend → Catalog v1/v2/v3: calls
- React frontend → Inventory: calls
- React frontend → Orders: calls
- React frontend → Payment: calls
- Istio ingress & routing → React frontend: ingress traffic
- Istio ingress & routing → Kubernetes workloads: routes to
- Catalog traffic policy → Catalog v1/v2/v3: defines subsets
- Istio ingress & routing → Catalog traffic policy: uses routing policy
- Helm desired state → Kubernetes workloads: renders workloads
- Kustomize manifests → Kubernetes workloads: alternative manifests
- Catalog CI → Catalog CD: immutable image
- Catalog CD → Helm desired state: commits desired state
- Argo CD → Kubernetes workloads: reconciles
- Platform CLI → Onboarding pipeline: invokes
- Superheros app spec → Onboarding pipeline: declares app
- Onboarding pipeline → Helm desired state: generates values
- Onboarding pipeline → Argo CD: creates application state
- Kind / EKS bootstrap → Istio ingress & routing: installs
- Kind / EKS bootstrap → Argo CD: installs
- Kyverno admission policy → Kubernetes workloads: admission gate
- Observability stack → Kubernetes workloads: monitors
- Observability stack → Istio ingress & routing: mesh visibility
