Skip to main content

GKE Overview

Visla GPS utilizza Google Kubernetes Engine (GKE) come piattaforma di hosting per tutti i microservizi.

πŸ—οΈ Servizi Google Cloud​

ServizioUsoConsole
GKECluster Kubernetes per microserviziGKE Console
Cloud SQLPostgreSQL databaseCloud SQL
Artifact RegistryContainer images DockerRegistry
Secret ManagerJWT, API keys, passwordsSecrets
Cloud BuildCI/CD automaticoCloud 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​

ServizioPorta InternaDescrizione
auth8081Autenticazione JWT, OAuth
devices8084Gestione dispositivi GPS
positions8090Posizioni real-time
events8092Eventi (geofence, alarms)
geofences8091Gestione zone geografiche
billing8095Stripe, subscriptions
commands8086Comandi ai dispositivi
notifications8088Push notifications
websocket8090Real-time WebSocket
sharing8089Condivisione dispositivi
client-logs8087Logging 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​

RisorsaCosto
GKE (2 nodi e2-standard-2)~$100
Cloud SQL (db-f1-micro)~$25
Artifact Registry~$5
NAT, Logging, etc.~$20
TOTALE~$150