Cloud Run-Bereitstellung
Sentry Analytics läuft auf Google Cloud Run für die Produktionsbereitstellung.
🚀 Schnelle Bereitstellung
# Build and push Docker image
gcloud builds submit --project=sentry-analytics-prod \
--tag=gcr.io/sentry-analytics-prod/sentry-app:latest
# Deploy to Cloud Run
gcloud run deploy sentry-app \
--project=sentry-analytics-prod \
--region=europe-west6 \
--image=gcr.io/sentry-analytics-prod/sentry-app:latest \
--platform=managed \
--allow-unauthenticated
📦 Infrastruktur
| Komponente | Dienst | Region |
|---|---|---|
| Backend API | Cloud Run | europe-west6 (Zürich) |
| Datenbank | Cloud SQL PostgreSQL | europe-west6 |
| KI-Dienste | Vertex AI | europe-west4 |
| Geheimnisse | Secret Manager | global |
| Speicher | Cloud Storage | europe-west6 |
⚙️ Umgebungsvariablen
| Variable | Beschreibung | Quelle |
|---|---|---|
DATABASE_URL | PostgreSQL-Verbindung | Secret Manager |
GOOGLE_CLOUD_PROJECT | GCP Projekt-ID | Umgebung |
AI_LOCATION | Vertex AI Region | Umgebung |
AGENT_API_KEY | AI Agent API Schlüssel | Secret Manager |
🔧 Cloud Run-Konfiguration
# Service configuration
memory: 512Mi
cpu: 1
minInstances: 0
maxInstances: 10
timeout: 300s
concurrency: 80
📊 Überwachung
- Cloud Logging - Alle Anfrage-/Antwortprotokolle
- Cloud Monitoring - CPU, Speicher, Anfragemetriken
- Error Reporting - Automatische Fehlerverfolgung
- Uptime Checks - Überwachung von Health Endpoints
🔐 Sicherheit
- IAM - Dienstkonto mit minimalen Berechtigungen
- Secret Manager - Alle Geheimnisse sicher verwaltet
- HTTPS Only - Gesamter Datenverkehr verschlüsselt
- VPC Connector - Privater Cloud SQL-Zugriff
🌍 Benutzerdefinierte Domain
Produktions-URL: https://sentryanalytic.com
Domain-Mapping über Cloud Run Domain-Mappings.
🔄 CI/CD
GitHub Actions Workflow:
- Push in den
master-Branch - Docker-Image erstellen
- Push ins Container Registry
- Bereitstellung in Cloud Run
- Überprüfung des Health Checks
Siehe Docker Guide für Details zur Containerisierung.