Summary
Deploy ADK agents to Agent Runtime, Cloud Run, or GKE with managed infrastructure and CI/CD pipelines.
- Choose deployment target based on language support, scaling model, networking, and cost: Agent Runtime (managed, Python-only), Cloud Run (custom infra, event-driven), or GKE (full Kubernetes control)
- Deploy via
agents-cli deploywith flags for secrets, environment variables, service accounts, and networking (VPC, PSC, DNS peering for Agent Runtime) - Set up production CI/CD pipelines with Workfront Identity Federation (WIF) authentication, cross-project service accounts, and automated staging-to-production promotion
- Manage infrastructure as code in Terraform; define custom resources (Cloud SQL, Pub/Sub, BigQuery, Eventarc) in version control, never manually via
gcloud - Rollback via git-based redeployment or Cloud Run traffic shifting; troubleshoot via Cloud Logging and IAM permission checks on service accounts
Deployment Guide
Requires:
agents-cli(uv tool install google-agents-cli) â install uv first if needed.
Prefer using the
agents-clicommands throughout this guide â they wrap Terraform, Docker, and deployment into a tested pipeline. If your project isn't scaffolded yet, see/google-agents-cli-scaffoldto add deployment support first.
Reference Files
For deeper details, consult these reference files in references/:
cloud-run.mdâ Scaling defaults, Dockerfile, session types, networkingagent-runtime.mdâ container-based deploy, unified FastAPI app, the/apipassthrough, Terraform resource, deployment metadata, CI/CD differencesgke.mdâ GKE Autopilot cluster, Kubernetes manifests, Workload Identity, session types, networkingterraform-patterns.mdâ Custom infrastructure, IAM, state management, importing resourcesbatch-inference.mdâ BigQuery Remote Function trigger; for Pub/Sub / Eventarc on ADK see/google-agents-cli-adk-codecicd-pipeline.mdâ Full CI/CD pipeline setup,infra cicdflags, runner comparison, WIF auth, pipeline stagestesting-deployed-agents.mdâ Testing instructions per deployment target, curl examples, load testscmek.mdâ Customer-managed encryption keys on Agent Runtime in Gemini platform: key grants,deploy --keyfor dev, Terraform edits for staging/prod
Installs: 602.4K | GitHub stars: 6.4K | First seen: Apr 21, 2026


