# sathishkumarandavar/gcp-multitenant-arch architecture

> Architecture diagram of the GitHub repository sathishkumarandavar/gcp-multitenant-arch, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sathishkumarandavar/gcp-multitenant-arch
- Repository: https://github.com/sathishkumarandavar/gcp-multitenant-arch

## Overview

This repository is a reference design and Terraform/Helm implementation for operating many customer products across GCP environments and runtime types. The main workflow is to establish shared platform foundations, describe customer/product versions in a catalog, provision customer environments from that catalog, and deploy GKE products with Helm. The README documents these connections; sampled implementation excerpts are limited to the diagram generator, so Terraform module internals and other runtime links are not inferred.

Main entry points: [`terraform/live/customers/main.tf`](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/live/customers/main.tf) (Customer Terraform), [`catalog/customers.yaml`](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/catalog/customers.yaml) (Customer release catalog), [`helm/values`](https://github.com/sathishkumarandavar/gcp-multitenant-arch/tree/main/helm/values) (Environment Helm values), [`terraform/live/platform/main.tf`](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/live/platform/main.tf) (Platform Terraform)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Platform foundations"]
  node_platform_root["Platform Terraform<br/>[main.tf]"]
  node_identity_module["Product identity<br/>[main.tf]"]
end

subgraph group_provisioning["Customer provisioning"]
  node_project_factory["Customer Terraform<br/>[main.tf]"]
  node_project_module["Project provisioning<br/>[main.tf]"]
  node_customer_data[("Customer data resources<br/>[main.tf]")]
end

subgraph group_runtime["Product runtimes"]
  node_edge_lb["Edge load balancer<br/>[main.tf]"]
  node_cloudrun_runtime["Cloud Run runtime<br/>[main.tf]"]
  node_gke_runtime["GKE runtime<br/>[main.tf]"]
  node_mig_runtime["Instance group runtime<br/>[main.tf]"]
  node_helm_product["GKE product chart"]
end

subgraph group_release["Release configuration"]
  node_customer_catalog["Customer release catalog<br/>[customers.yaml]"]
  node_helm_values["Environment Helm values"]
end

node_platform_admin(("Platform operator"))

node_platform_admin -->|"provisions foundations"| node_platform_root
node_platform_admin -->|"updates releases"| node_customer_catalog
node_customer_catalog -->|"drives provisioning"| node_project_factory
node_project_factory -->|"creates projects"| node_project_module
node_project_factory -->|"creates data project"| node_customer_data
node_project_factory -->|"creates load balancer"| node_edge_lb
node_project_factory -->|"creates runtimes"| node_cloudrun_runtime
node_project_factory -->|"creates runtimes"| node_gke_runtime
node_project_factory -->|"creates runtimes"| node_mig_runtime
node_project_factory -.-> node_identity_module
node_project_factory -->|"outputs deployment values"| node_helm_values
node_helm_values -->|"configures deployment"| node_helm_product

click node_platform_root "https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/live/platform/main.tf"
click node_project_factory "https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/live/customers/main.tf"
click node_customer_catalog "https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/catalog/customers.yaml"
click node_project_module "https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/project/main.tf"
click node_identity_module "https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/product-identity/main.tf"
click node_customer_data "https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/customer-data/main.tf"
click node_edge_lb "https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/edge-lb/main.tf"
click node_cloudrun_runtime "https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/runtime-cloudrun/main.tf"
click node_gke_runtime "https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/runtime-gke/main.tf"
click node_mig_runtime "https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/runtime-mig/main.tf"
click node_helm_product "https://github.com/sathishkumarandavar/gcp-multitenant-arch/tree/main/helm/charts/product"
click node_helm_values "https://github.com/sathishkumarandavar/gcp-multitenant-arch/tree/main/helm/values"

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_platform_root,node_identity_module toneBlue
class node_project_factory,node_project_module,node_customer_data toneAmber
class node_edge_lb,node_cloudrun_runtime,node_gke_runtime,node_mig_runtime,node_helm_product toneMint
class node_customer_catalog,node_helm_values toneRose
class node_platform_admin toneIndigo
```

## Components

### Platform foundations

- [Platform Terraform](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/live/platform/main.tf): `terraform/live/platform/main.tf`
- [Product identity](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/product-identity/main.tf): `terraform/modules/product-identity/main.tf`

### Customer provisioning

- [Customer Terraform](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/live/customers/main.tf): `terraform/live/customers/main.tf`
- [Project provisioning](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/project/main.tf): `terraform/modules/project/main.tf`
- [Customer data resources](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/customer-data/main.tf): `terraform/modules/customer-data/main.tf`

### Product runtimes

- [Edge load balancer](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/edge-lb/main.tf): `terraform/modules/edge-lb/main.tf`
- [Cloud Run runtime](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/runtime-cloudrun/main.tf): `terraform/modules/runtime-cloudrun/main.tf`
- [GKE runtime](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/runtime-gke/main.tf): `terraform/modules/runtime-gke/main.tf`
- [Instance group runtime](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/terraform/modules/runtime-mig/main.tf): `terraform/modules/runtime-mig/main.tf`
- [GKE product chart](https://github.com/sathishkumarandavar/gcp-multitenant-arch/tree/main/helm/charts/product): `helm/charts/product`

### Release configuration

- [Customer release catalog](https://github.com/sathishkumarandavar/gcp-multitenant-arch/blob/main/catalog/customers.yaml): `catalog/customers.yaml`
- [Environment Helm values](https://github.com/sathishkumarandavar/gcp-multitenant-arch/tree/main/helm/values): `helm/values`

### Other components

- **Platform operator**

## Connections

- Platform operator → Platform Terraform: provisions foundations (evidence: `README.md`)
- Platform operator → Customer release catalog: updates releases (evidence: `README.md`)
- Customer release catalog → Customer Terraform: drives provisioning (evidence: `README.md`)
- Customer Terraform → Project provisioning: creates projects (evidence: `README.md`)
- Customer Terraform → Customer data resources: creates data project (evidence: `README.md`)
- Customer Terraform → Edge load balancer: creates load balancer (evidence: `README.md`)
- Customer Terraform → Cloud Run runtime: creates runtimes (evidence: `README.md`)
- Customer Terraform → GKE runtime: creates runtimes (evidence: `README.md`)
- Customer Terraform → Instance group runtime: creates runtimes (evidence: `README.md`)
- Customer Terraform → Product identity
- Customer Terraform → Environment Helm values: outputs deployment values (evidence: `README.md`)
- Environment Helm values → GKE product chart: configures deployment (evidence: `README.md`)
