gcp-cloud-run
Installation
SKILL.md
GCP Cloud Run
Overview
Google Cloud Run is a fully managed serverless platform for running containers. It automatically scales from zero to thousands of instances, charges only for actual usage, and supports any language or binary that can run in a container.
Instructions
Core Concepts
- Service — a long-running container that auto-scales based on HTTP traffic
- Revision — an immutable snapshot of a service's configuration and code
- Traffic splitting — route percentages of traffic to different revisions
- Job — run a container to completion (batch, cron, one-off tasks)
- Worker pool — always-on container for pull-based background work (Pub/Sub pull, Kafka consumer, RabbitMQ)
- Concurrency — max simultaneous requests per container instance
CRITICAL: Code MUST listen on
0.0.0.0(not127.0.0.1) and use the injected$PORTenv var (defaults to8080), or the container will crash on boot.