# juanpa1999/helm-chart architecture

> Architecture diagram of the GitHub repository juanpa1999/helm-chart, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/juanpa1999/helm-chart
- Repository: https://github.com/juanpa1999/helm-chart

## Overview

This repository packages Kubernetes deployment charts for a sensor-monitoring application; it contains no application code. The documented user path is browser traffic through Traefik to the frontend or API, with the backend using PostgreSQL. Supporting chart components provide database persistence, migration, secret resources, and ingress configuration. Relationships below rely on the README; source excerpts were not available, so chart-internal behavior and some integrations are left unlinked or marked unverified.

Main entry points: [`ingress/templates/ingress.yaml`](https://github.com/juanpa1999/helm-chart/blob/main/ingress/templates/ingress.yaml) (Ingress routes), [`app-secrets/templates/externalsecrets.yaml`](https://github.com/juanpa1999/helm-chart/blob/main/app-secrets/templates/externalsecrets.yaml) (External secret resources), [`frontend/templates/deployment.yaml`](https://github.com/juanpa1999/helm-chart/blob/main/frontend/templates/deployment.yaml) (Frontend workload), [`backend/templates/deployment.yaml`](https://github.com/juanpa1999/helm-chart/blob/main/backend/templates/deployment.yaml) (Backend workload)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Ingress and access"]
  node_traefik["Traefik ingress"]
  node_ingress["Ingress routes<br/>[ingress.yaml]"]
  node_middleware["API prefix middleware<br/>[middleware.yaml]"]
  node_certificate["Ingress certificate<br/>[certificate.yaml]"]
end

subgraph group_services["Application workloads"]
  node_frontend["Frontend workload<br/>[deployment.yaml]"]
  node_front_service["Frontend service<br/>[service.yaml]"]
  node_backend["Backend workload<br/>[deployment.yaml]"]
  node_back_service["Backend service<br/>[service.yaml]"]
  node_migration["Database migration job<br/>[job-migrate.yaml]"]
end

subgraph group_storage["Database and persistence"]
  node_postgres[("PostgreSQL StatefulSet<br/>[statefulset.yaml]")]
  node_db_service["Database service<br/>[service.yaml]"]
  node_db_volume[("Database volume claim<br/>[pvc.yaml]")]
end

subgraph group_secrets["Secrets and certificates"]
  node_external_secrets["External secret resources"]
  node_secret_store["Secret store<br/>[secretstore.yaml]"]
  node_service_account["Secret service account"]
  node_cluster_issuers["Cluster issuers"]
  node_cert_manager["Certificate issuers"]
end

node_browser(("Browser"))

node_browser -->|"sends requests"| node_traefik
node_traefik -->|"routes host"| node_ingress
node_ingress -->|"routes /"| node_front_service
node_ingress -->|"routes /api"| node_back_service
node_middleware -->|"strips prefix"| node_back_service
node_front_service -->|"targets workload"| node_frontend
node_back_service -->|"targets workload"| node_backend
node_frontend -->|"calls API URL"| node_ingress
node_backend -->|"connects DB"| node_db_service
node_db_service -->|"targets database"| node_postgres
node_postgres -->|"persists data"| node_db_volume
node_migration -.->|"migrates database"| node_db_service
node_secret_store -.->|"backs secret sync"| node_external_secrets
node_external_secrets -->|"provides DB secret"| node_backend
node_external_secrets -->|"provides pull secret"| node_frontend
node_cluster_issuers -.->|"issues certificates"| node_certificate
node_cert_manager -.->|"supports issuance"| node_certificate

click node_ingress "https://github.com/juanpa1999/helm-chart/blob/main/ingress/templates/ingress.yaml"
click node_middleware "https://github.com/juanpa1999/helm-chart/blob/main/ingress/templates/middleware.yaml"
click node_frontend "https://github.com/juanpa1999/helm-chart/blob/main/frontend/templates/deployment.yaml"
click node_front_service "https://github.com/juanpa1999/helm-chart/blob/main/frontend/templates/service.yaml"
click node_backend "https://github.com/juanpa1999/helm-chart/blob/main/backend/templates/deployment.yaml"
click node_back_service "https://github.com/juanpa1999/helm-chart/blob/main/backend/templates/service.yaml"
click node_migration "https://github.com/juanpa1999/helm-chart/blob/main/backend/templates/job-migrate.yaml"
click node_postgres "https://github.com/juanpa1999/helm-chart/blob/main/db/templates/statefulset.yaml"
click node_db_service "https://github.com/juanpa1999/helm-chart/blob/main/db/templates/service.yaml"
click node_db_volume "https://github.com/juanpa1999/helm-chart/blob/main/db/templates/pvc.yaml"
click node_external_secrets "https://github.com/juanpa1999/helm-chart/blob/main/app-secrets/templates/externalsecrets.yaml"
click node_secret_store "https://github.com/juanpa1999/helm-chart/blob/main/app-secrets/templates/secretstore.yaml"
click node_service_account "https://github.com/juanpa1999/helm-chart/blob/main/app-secrets/templates/serviceaccount.yaml"
click node_cluster_issuers "https://github.com/juanpa1999/helm-chart/blob/main/cluster-issuers/templates/cluster-issuers.yaml"
click node_cert_manager "https://github.com/juanpa1999/helm-chart/blob/main/cert-manager/cluster-issuers.yaml"
click node_certificate "https://github.com/juanpa1999/helm-chart/blob/main/ingress/templates/certificate.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_traefik,node_ingress,node_middleware,node_certificate,node_browser toneBlue
class node_frontend,node_front_service,node_backend,node_back_service,node_migration toneAmber
class node_postgres,node_db_service,node_db_volume toneMint
class node_external_secrets,node_secret_store,node_service_account,node_cluster_issuers,node_cert_manager toneRose
```

## Components

### Ingress and access

- **Traefik ingress**
- [Ingress routes](https://github.com/juanpa1999/helm-chart/blob/main/ingress/templates/ingress.yaml): `ingress/templates/ingress.yaml`
- [API prefix middleware](https://github.com/juanpa1999/helm-chart/blob/main/ingress/templates/middleware.yaml): `ingress/templates/middleware.yaml`
- [Ingress certificate](https://github.com/juanpa1999/helm-chart/blob/main/ingress/templates/certificate.yaml): `ingress/templates/certificate.yaml`

### Application workloads

- [Frontend workload](https://github.com/juanpa1999/helm-chart/blob/main/frontend/templates/deployment.yaml): `frontend/templates/deployment.yaml`
- [Frontend service](https://github.com/juanpa1999/helm-chart/blob/main/frontend/templates/service.yaml): `frontend/templates/service.yaml`
- [Backend workload](https://github.com/juanpa1999/helm-chart/blob/main/backend/templates/deployment.yaml): `backend/templates/deployment.yaml`
- [Backend service](https://github.com/juanpa1999/helm-chart/blob/main/backend/templates/service.yaml): `backend/templates/service.yaml`
- [Database migration job](https://github.com/juanpa1999/helm-chart/blob/main/backend/templates/job-migrate.yaml): `backend/templates/job-migrate.yaml`

### Database and persistence

- [PostgreSQL StatefulSet](https://github.com/juanpa1999/helm-chart/blob/main/db/templates/statefulset.yaml): `db/templates/statefulset.yaml`
- [Database service](https://github.com/juanpa1999/helm-chart/blob/main/db/templates/service.yaml): `db/templates/service.yaml`
- [Database volume claim](https://github.com/juanpa1999/helm-chart/blob/main/db/templates/pvc.yaml): `db/templates/pvc.yaml`

### Secrets and certificates

- [External secret resources](https://github.com/juanpa1999/helm-chart/blob/main/app-secrets/templates/externalsecrets.yaml): `app-secrets/templates/externalsecrets.yaml`
- [Secret store](https://github.com/juanpa1999/helm-chart/blob/main/app-secrets/templates/secretstore.yaml): `app-secrets/templates/secretstore.yaml`
- [Secret service account](https://github.com/juanpa1999/helm-chart/blob/main/app-secrets/templates/serviceaccount.yaml): `app-secrets/templates/serviceaccount.yaml`
- [Cluster issuers](https://github.com/juanpa1999/helm-chart/blob/main/cluster-issuers/templates/cluster-issuers.yaml): `cluster-issuers/templates/cluster-issuers.yaml`
- [Certificate issuers](https://github.com/juanpa1999/helm-chart/blob/main/cert-manager/cluster-issuers.yaml): `cert-manager/cluster-issuers.yaml`

### Other components

- **Browser**

## Connections

- Browser → Traefik ingress: sends requests (evidence: `README.md`)
- Traefik ingress → Ingress routes: routes host (evidence: `README.md`)
- Ingress routes → Frontend service: routes / (evidence: `README.md`)
- Ingress routes → Backend service: routes /api (evidence: `README.md`)
- API prefix middleware → Backend service: strips prefix (evidence: `README.md`)
- Frontend service → Frontend workload: targets workload (evidence: `README.md`)
- Backend service → Backend workload: targets workload (evidence: `README.md`)
- Frontend workload → Ingress routes: calls API URL (evidence: `README.md`)
- Backend workload → Database service: connects DB (evidence: `README.md`)
- Database service → PostgreSQL StatefulSet: targets database (evidence: `README.md`)
- PostgreSQL StatefulSet → Database volume claim: persists data (evidence: `README.md`)
- Database migration job → Database service: migrates database
- Secret store → External secret resources: backs secret sync
- External secret resources → Backend workload: provides DB secret (evidence: `README.md`)
- External secret resources → Frontend workload: provides pull secret (evidence: `README.md`)
- Cluster issuers → Ingress certificate: issues certificates
- Certificate issuers → Ingress certificate: supports issuance
