# dacl010811/gitops-multicloud architecture

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

- Interactive diagram: https://gitdiagram.com/dacl010811/gitops-multicloud
- Repository: https://github.com/dacl010811/gitops-multicloud

## Overview

This repository is a multicloud GitOps deployment for an electronic-invoicing microservice. Its documented delivery flow combines CI/CD, provider-agnostic infrastructure, and ArgoCD GitOps to run the service on AWS or Azure; the service exposes health, readiness, metrics, and cloud/version information. The tree also shows provider-specific secret integrations and monitoring configuration. Source excerpts cover only the FastAPI service, so deployment relationships are included only where the README documents them; the detailed wiring of infrastructure and GitOps manifests is not verified here.

Main entry points: [`app/main.py`](https://github.com/dacl010811/gitops-multicloud/blob/main/app/main.py) (Facturación API), [`gitops/argocd`](https://github.com/dacl010811/gitops-multicloud/tree/main/gitops/argocd) (ArgoCD applications), [`.github/workflows/ci-cd.yaml`](https://github.com/dacl010811/gitops-multicloud/blob/main/.github/workflows/ci-cd.yaml) (CI/CD pipeline), [`iac/aws`](https://github.com/dacl010811/gitops-multicloud/tree/main/iac/aws) (AWS infrastructure)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_service["Application service"]
  node_service_api["Facturación API<br/>[main.py]"]
end

subgraph group_infra["Cloud infrastructure"]
  node_iac_aws["AWS infrastructure"]
  node_iac_azure["Azure infrastructure"]
  node_cluster_modules["Kubernetes modules"]
  node_aws_registry["AWS registry"]
  node_azure_registry["Azure registry"]
  node_aws_secrets["AWS secrets CSI"]
  node_azure_keyvault["Azure Key Vault"]
end

subgraph group_gitops["GitOps deployment"]
  node_argocd_apps["ArgoCD applications"]
  node_base_manifests["Kubernetes base"]
  node_aws_overlay["AWS overlay"]
  node_azure_overlay["Azure overlay"]
end

subgraph group_ops["Delivery and operations"]
  node_pipeline["CI/CD pipeline<br/>[ci-cd.yaml]"]
  node_monitoring["Monitoring config<br/>[values.yaml]"]
end

node_operator(("Platform operator"))
node_prometheus["Prometheus"]
node_aws_cloud["AWS"]
node_azure_cloud["Azure"]
node_api_user(("API consumer"))

node_operator -.->|"starts delivery"| node_pipeline
node_pipeline -.->|"provisions infrastructure"| node_iac_aws
node_pipeline -.->|"provisions infrastructure"| node_iac_azure
node_operator -.->|"manages deployment"| node_argocd_apps
node_argocd_apps -.->|"deploys to AWS"| node_aws_overlay
node_argocd_apps -.->|"deploys to Azure"| node_azure_overlay
node_aws_cloud -.->|"runs service"| node_service_api
node_azure_cloud -.->|"runs service"| node_service_api
node_api_user -->|"requests endpoints"| node_service_api
node_service_api -->|"exposes metrics"| node_prometheus

click node_pipeline "https://github.com/dacl010811/gitops-multicloud/blob/main/.github/workflows/ci-cd.yaml"
click node_iac_aws "https://github.com/dacl010811/gitops-multicloud/tree/main/iac/aws"
click node_iac_azure "https://github.com/dacl010811/gitops-multicloud/tree/main/iac/azure"
click node_cluster_modules "https://github.com/dacl010811/gitops-multicloud/tree/main/iac/modules/kubernetes-cluster"
click node_aws_registry "https://github.com/dacl010811/gitops-multicloud/tree/main/iac/aws/registry"
click node_azure_registry "https://github.com/dacl010811/gitops-multicloud/tree/main/iac/azure/registry"
click node_aws_secrets "https://github.com/dacl010811/gitops-multicloud/tree/main/iac/aws/secrets-csi"
click node_azure_keyvault "https://github.com/dacl010811/gitops-multicloud/tree/main/iac/azure/key-vault"
click node_argocd_apps "https://github.com/dacl010811/gitops-multicloud/tree/main/gitops/argocd"
click node_base_manifests "https://github.com/dacl010811/gitops-multicloud/tree/main/gitops/bases"
click node_aws_overlay "https://github.com/dacl010811/gitops-multicloud/tree/main/gitops/overlays/aws-eks"
click node_azure_overlay "https://github.com/dacl010811/gitops-multicloud/tree/main/gitops/overlays/azure-aks"
click node_service_api "https://github.com/dacl010811/gitops-multicloud/blob/main/app/main.py"
click node_monitoring "https://github.com/dacl010811/gitops-multicloud/blob/main/gitops/monitoring/values.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_service_api toneBlue
class node_iac_aws,node_iac_azure,node_cluster_modules,node_aws_registry,node_azure_registry,node_aws_secrets,node_azure_keyvault toneAmber
class node_argocd_apps,node_base_manifests,node_aws_overlay,node_azure_overlay,node_api_user toneMint
class node_pipeline,node_monitoring toneRose
class node_operator,node_prometheus,node_aws_cloud,node_azure_cloud toneIndigo
```

## Components

### Application service

- [Facturación API](https://github.com/dacl010811/gitops-multicloud/blob/main/app/main.py): `app/main.py`

### Cloud infrastructure

- [AWS infrastructure](https://github.com/dacl010811/gitops-multicloud/tree/main/iac/aws): `iac/aws`
- [Azure infrastructure](https://github.com/dacl010811/gitops-multicloud/tree/main/iac/azure): `iac/azure`
- [Kubernetes modules](https://github.com/dacl010811/gitops-multicloud/tree/main/iac/modules/kubernetes-cluster): `iac/modules/kubernetes-cluster`
- [AWS registry](https://github.com/dacl010811/gitops-multicloud/tree/main/iac/aws/registry): `iac/aws/registry`
- [Azure registry](https://github.com/dacl010811/gitops-multicloud/tree/main/iac/azure/registry): `iac/azure/registry`
- [AWS secrets CSI](https://github.com/dacl010811/gitops-multicloud/tree/main/iac/aws/secrets-csi): `iac/aws/secrets-csi`
- [Azure Key Vault](https://github.com/dacl010811/gitops-multicloud/tree/main/iac/azure/key-vault): `iac/azure/key-vault`

### GitOps deployment

- [ArgoCD applications](https://github.com/dacl010811/gitops-multicloud/tree/main/gitops/argocd): `gitops/argocd`
- [Kubernetes base](https://github.com/dacl010811/gitops-multicloud/tree/main/gitops/bases): `gitops/bases`
- [AWS overlay](https://github.com/dacl010811/gitops-multicloud/tree/main/gitops/overlays/aws-eks): `gitops/overlays/aws-eks`
- [Azure overlay](https://github.com/dacl010811/gitops-multicloud/tree/main/gitops/overlays/azure-aks): `gitops/overlays/azure-aks`

### Delivery and operations

- [CI/CD pipeline](https://github.com/dacl010811/gitops-multicloud/blob/main/.github/workflows/ci-cd.yaml): `.github/workflows/ci-cd.yaml`
- [Monitoring config](https://github.com/dacl010811/gitops-multicloud/blob/main/gitops/monitoring/values.yaml): `gitops/monitoring/values.yaml`

### Other components

- **Platform operator**
- **Prometheus**
- **AWS**
- **Azure**
- **API consumer**

## Connections

- Platform operator → CI/CD pipeline: starts delivery
- CI/CD pipeline → AWS infrastructure: provisions infrastructure (evidence: `README.md`)
- CI/CD pipeline → Azure infrastructure: provisions infrastructure (evidence: `README.md`)
- Platform operator → ArgoCD applications: manages deployment (evidence: `README.md`)
- ArgoCD applications → AWS overlay: deploys to AWS (evidence: `README.md`)
- ArgoCD applications → Azure overlay: deploys to Azure (evidence: `README.md`)
- AWS → Facturación API: runs service (evidence: `README.md`)
- Azure → Facturación API: runs service (evidence: `README.md`)
- API consumer → Facturación API: requests endpoints (evidence: `app/main.py`)
- Facturación API → Prometheus: exposes metrics (evidence: `app/main.py`)
