gcp-cloud-run
>
Works with
--- name: gcp-cloud-run description: > license: MIT --- # GCP Cloud Run ## Table of Contents - [Overview](#overview) - [When to Use](#when-to-use) - [Quick Start](#quick-start) - [Reference Guides](#reference-guides) - [Best Practices](#best-practices) ## Overview Google Cloud Run enables deployment of containerized applications at scale without managing infrastructure. Run stateless HTTP containers with automatic scaling from zero to thousands of instances, paying only for compute time consumed. ## When to Use - Microservices and APIs - Web applications and backends - Batch processing jobs - Long-running background workers - CI/CD pipeline integration - Data processing pipelines - WebSocket applications - Multi-language services ## Quick Start Minimal working example: ```bash # Build container image gcloud builds submit --tag gcr.io/MY_PROJECT_ID/my-app:latest # Deploy to Cloud Run gcloud run deploy my-app \ --image gcr.io/MY_PROJECT_ID/my-app:latest \ --platform managed \ --region us-central1 \ --memory 512Mi \ --cpu 1 \ --timeout 3600 \ --max-instances 100 \ --min-instances 1 \ --no-allow-unauthenticated \ --set-env-vars NODE_ENV=production,DATABASE_URL=postgresql://... # Allow public access gcloud run services add-iam-policy-binding my-app \ --platform managed \ --region us-central1 \ --member=allUsers \ --role=roles/run.invoker # Get service URL gcloud run services describe my-app \ // ... (see reference guides for full implementation) ``` ## Reference Guides Detailed implementations in the `references/` directory: | Guide | Contents | |---|---| | [Cloud Run Deployment with gcloud CLI](references/cloud-run-deployment-with-gcloud-cli.md) | Cloud Run Deployment with gcloud CLI | | [Containerized Application (Node.js)](references/containerized-application-nodejs.md) | Containerized Application (Node.js) | | [Terraform Cloud Run Configuration](references/terraform-cloud-run-configuration.md) | Terraform Cloud Run Configuration | | [Docker Build and Push](references/docker-build-and-push.md) | Docker Build and Push | ## Best Practices ### ✅ DO - Use container health checks - Set appropriate CPU and memory - Implement graceful shutdown - Use service accounts with least privilege - Monitor with Cloud Logging - Enable Cloud Armor for protection - Use revision management for blue-green deployments - Implement startup and liveness probes ### ❌ DON'T - Store secrets in code - Use default service account - Create stateful applications - Ignore health checks - Deploy without testing - Use excessive resource limits - Store files in container filesystem
More DevOps & Infrastructure skills
azure-ai
microsoft/azure-skills
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.
appinsights-instrumentation
microsoft/azure-skills
Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practices.
azure-storage
microsoft/azure-skills
Azure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and Data Lake. Answers questions about storage access tiers (hot, cool, cold, archive), when to use each tier, and tier comparison. Provides object storage, SMB file shares, async messaging, NoSQL key-value, and big data analytics. Includes lifecycle management. USE FOR: blob storage, file shares, queue storage, table storage, data lake, upload files, download blobs, storage accounts, access tiers, storage tiers, hot cool cold archive, storage tier comparison, when to use storage tiers, lifecycle management, Azure Storage concepts. DO NOT USE FOR: SQL databases, Cosmos DB (use azure-prepare), messaging with Event Hubs or Service Bus (use azure-messaging).

