Prerequisites
Required tools
Install on macOS:
Required GCP APIs
Terraform enables these automatically on first apply, butcloudresourcemanager.googleapis.com must be enabled first so Terraform can enable the rest. Enable everything manually for fast first runs:
Required IAM roles
The principal running Terraform needs the following roles on the target project. Trim to least-privilege after the initial deployment is stable.Authenticate
Rapid path
For the fastest path from zero to a running LangSmith instance, run these commands in order:Provision infrastructure
Provisioning the GCP cloud foundation takes 25 to 35 minutes on a clean project. Do not interrupt the apply.What gets provisioned
Clone and configure
modules/gcp/. Run make help for the full target list.
Generate terraform.tfvars with the interactive wizard:
infra/terraform.tfvars. Re-running pre-selects existing values; press Enter at each prompt to keep the current config.
Prefer to edit manually:
Load secrets into Secret Manager
terraform.tfvars, derives the secret prefix, and for each secret either reuses an exported value, reads the existing Secret Manager secret, auto-generates one (for salts and Fernet keys), or prompts you. The license key and admin password are the two values you supply interactively. The script must be sourced because make cannot export environment variables back to the parent shell.
Verify the secrets are present:
Preflight checks
make preflight validates that the active gcloud credentials can perform each required action, that the required GCP APIs are enabled, and that the target region has the SKUs the modules request. Catching gaps here is faster than discovering them mid-terraform apply.
Apply
make plan shows the proposed diff. Review the output before applying. make apply provisions in dependency order: VPC and networking, then GKE (about 10 to 15 minutes), private service connection, Cloud SQL (about 10 minutes with HA), Memorystore, GCS, and the bootstrap workloads.
Equivalent direct Terraform flow:
Configure kubectl
Ready.
Verify bootstrap components
Deploy LangSmith
Two paths are supported. Pick one.Script-driven Helm deploy (recommended)
Two commands install the LangSmith chart with sensible defaults wired from Terraform outputs:init-values.sh prompts for the admin email, then reads sizing_profile and the enable_* flags from terraform.tfvars and copies matching values files from helm/values/examples/ into helm/values/. It also generates values-overrides.yaml with your hostname, Workload Identity annotations, and GCS bucket name.
make deploy runs helm/scripts/deploy.sh, which refreshes the kubeconfig, runs preflight checks, applies the layered values files, and runs helm upgrade --install.
Expect 8 to 12 minutes for the chart to install and pods to become ready.
Manual Helm install
Best for teams runninghelm directly without the scripts. Generate the required secrets first:
Verify and configure DNS
Sizing profiles
Setsizing_profile in terraform.tfvars, then re-run make init-values && make deploy.
Expected pods
Enable add-ons
Each add-on is gated by a flag ininfra/terraform.tfvars. Set the flag, re-apply Terraform, then re-run make init-values && make deploy.
LangSmith Deployment
Addshost-backend, listener, and operator. Required before enabling Agent Builder or Insights. KEDA is installed automatically when enable_langsmith_deployment = true.
Agent Builder
Prerequisite: LangSmith Deployment healthy. Addsagent-builder-tool-server, agent-builder-trigger-server, and an agentBootstrap Job that registers the Polly agent URL.
agentBootstrap completes so it picks up the langsmith-polly-config ConfigMap:
Insights and Polly
Prerequisite: Agent Builder healthy. Insights enables ClickHouse-backed trace analytics. Polly is the AI eval and monitoring agent. Enable both together.Expected pods by add-on
LangSmith Deployment adds:langsmith-host-backend, langsmith-listener, langsmith-operator.
Agent Builder adds: langsmith-agent-builder-tool-server, langsmith-agent-builder-trigger-server, langsmith-agent-builder-bootstrap (Completed), agent-builder-<hash> (operator-spawned).
Insights and Polly add: clio-<hash> (Insights analytics), smith-polly-<hash> (Polly agent), lg-<hash>-0 (LangGraph StatefulSet).
Key watchouts
config.deployment.urlmust includehttps://. Without it, operator-spawned agents stay stuck inDEPLOYING.config.deployment.enabled: trueis required for LangSmith Deployment. Setting only the URL withoutenabled: truecauses the chart to silently skiplistenerandoperator.- Encryption keys must never change after first enable. Rotating
insights_encryption_keyorpolly_encryption_keypermanently breaks existing encrypted data. - Roll the frontend after first Polly enable.
agentBootstrapcreates thelangsmith-polly-configConfigMap after registering. Frontend pods started before bootstrap completes do not pick it up automatically. - Envoy Gateway IP changes on teardown. GCP releases the external IP when the Gateway is deleted. After a re-apply, a new IP is issued, so update your DNS A record.
langsmith-ksaannotation is not permanent. The operator createslangsmith-ksaat runtime; it does not survive namespace deletion.deploy.shre-annotates it idempotently. Re-runmake deployif operator pods lose GCS access after a cluster rebuild.
Next steps
- Reference the GCP variables and the quick reference.
- Review the GCP architecture for module structure, traffic flow, and Workload Identity.
- When something breaks, check the GCP troubleshooting guide.
- Enable agent deployment in the UI with LangSmith Deployment.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

