GKE Overview
Visla GPS utilizza Google Kubernetes Engine (GKE) come piattaforma di hosting per tutti i microservizi.
ποΈ Servizi Google Cloudβ
| Servizio | Uso | Console |
|---|---|---|
| GKE | Cluster Kubernetes per microservizi | GKE Console |
| Cloud SQL | PostgreSQL database | Cloud SQL |
| Artifact Registry | Container images Docker | Registry |
| Secret Manager | JWT, API keys, passwords | Secrets |
| Cloud Build | CI/CD automatico | Cloud Build |
π Configurazione Attualeβ
Project ID: visla-k8s-2026
Region: europe-west8 (Milano)
Cluster: visla-k8s-cluster
Zone: europe-west8-a
Registry: europe-west8-docker.pkg.dev/visla-k8s-2026/visla
π Microservizi Deployatiβ
| Servizio | Porta Interna | Descrizione |
|---|---|---|
auth | 8081 | Autenticazione JWT, OAuth |
devices | 8084 | Gestione dispositivi GPS |
positions | 8090 | Posizioni real-time |
events | 8092 | Eventi (geofence, alarms) |
geofences | 8091 | Gestione zone geografiche |
billing | 8095 | Stripe, subscriptions |
commands | 8086 | Comandi ai dispositivi |
notifications | 8088 | Push notifications |
websocket | 8090 | Real-time WebSocket |
sharing | 8089 | Condivisione dispositivi |
client-logs | 8087 | Logging da app iOS/Web |
π Struttura Fileβ
infra/
βββ terraform/ # Crea infrastruttura GCP
β βββ main.tf # Provider
β βββ gke.tf # Cluster GKE
β βββ database.tf # Cloud SQL
β βββ registry.tf # Artifact Registry
β βββ secrets.tf # Secret Manager
β
βββ k8s/ # Manifests Kubernetes
β βββ deployments/ # 11 microservizi
β β βββ auth.yaml
β β βββ devices.yaml
β β βββ ...
β βββ ingress-routes.yaml
β βββ middlewares.yaml
β βββ traefik-values.yaml
β
βββ cloudbuild-all.yaml # Build tutti i servizi
π° Costi Mensili Stimatiβ
| Risorsa | Costo |
|---|---|
| GKE (2 nodi e2-standard-2) | ~$100 |
| Cloud SQL (db-f1-micro) | ~$25 |
| Artifact Registry | ~$5 |
| NAT, Logging, etc. | ~$20 |
| TOTALE | ~$150 |