Overview

Deploy Confident AI on your GCP infrastructure for complete control over your evaluation and observability platform.

Architecture

The GCP deployment uses Terraform to provision a production-ready infrastructure with the following components:

GCP Self-Hosting Reference Architecture

Core components

VPC & Networking

GKE/database/public/private-service-connect subnets with Cloud NAT, VPC firewall rules, and Cloud DNS private zone.

GKE Cluster

Managed Kubernetes with a system node pool and autoscaling worker node pool, Workload Identity, and VPC-native networking.

Cloud SQL for PostgreSQL

Managed database with Private Service Access in a VPC peering, regional HA, automated backups, and private DNS resolution.

NGINX Ingress + Cloud LB

NGINX Ingress Controller backed by a GCP TCP/UDP Network Load Balancer with cert-manager for TLS.

ArgoCD

GitOps tool for managing Kubernetes deployments.

Cloud Storage

GCS buckets with uniform access and Private Google Access for test cases, payloads, and ClickHouse backups.

Deployed services

The Kubernetes cluster runs the following services:

ServiceNamespaceDescription
confident-backendconfident-aiExpress.js API service handling core platform logic
confident-frontendconfident-aiNext.js web application for the Confident AI dashboard
confident-evalsconfident-aiFastAPI service for running LLM evaluations
confident-otelconfident-aiOpenTelemetry collector for trace ingestion
redisconfident-aiIn-memory cache for session and queue management
ArgoCDargocdGitOps continuous delivery
ClickHouse Operatorclickhouse-operator-systemManages the analytics database
NGINX Ingressingress-nginxRoutes external traffic to services via Cloud LB
External Secretsconfident-aiSyncs credentials from Google Secret Manager
cert-managercert-managerAutomates TLS certificate issuance and renewal