google/cloud-run-basics

Gère les services Cloud Run, les tâches et les pools de workers. À utiliser lorsque vous devez déployer des applications répondant à des requêtes HTTP (services), exécuter des tâches déclenchées par des événements ou planifiées (tâches), ou gérer un traitement en arrière-plan continu basé sur le pull (pools de workers).

Qu'est-ce que cloud-run-basics ?

Cette compétence permet de gérer les services Cloud Run, les tâches Cloud Run et les pools de workers. Les services Cloud Run sont utilisés pour déployer des applications qui répondent aux requêtes HTTP (comme une API REST) ; les tâches sont idéales pour les traitements déclenchés par des événements ou planifiés (par exemple, l'exportation de données) ; les pools de workers sont conçus pour un traitement continu en arrière-plan basé sur le pull (comme l'exécution de files d'attente de messages). Cette compétence est utile pour automatiser entièrement le déploiement et la gestion de ces ressources sans basculer manuellement vers la console Google Cloud. Elle prend en charge le déploiement depuis un dépôt Git ou via des images de conteneur pré-construites, la configuration des variables d'environnement, et l'inspection des détails du service. Elle peut être utilisée avec Claude Code (et d'autres agents compatibles) et nécessite que l'utilisateur soit connecté à un projet Google Cloud avec un compte de service disposant des autorisations nécessaires (roles/run.admin, roles/iam.serviceAccountUser).

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/google/skills/tree/main/skills/cloud-run-basics

Installed? Explore more Développement et programmation skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Que fait cloud-run-basics ?

Gère les services Cloud Run, les tâches et les pools de workers. À utiliser lorsque vous devez déployer des applications répondant à des requêtes HTTP (services), exécuter des tâches déclenchées par des événements ou planifiées (tâches), ou gérer un traitement en arrière-plan continu basé sur le pull (pools de workers).

Prérequis

  • Google Cloud SDK (gcloud CLI) installé et authentifié.
  • Un projet Google Cloud avec Cloud Run activé.
  • Autorisations IAM : roles/run.admin, roles/iam.serviceAccountUser.
  • Compte de service par défaut ou spécifique configuré.

Commandes prises en charge

Services

CommandeDescription
gcloud run services listLister tous les services Cloud Run dans un projet/région.
gcloud run services describe <service>Afficher les détails d’un service spécifique.
gcloud run services deploy <service> --image <image>Déployer un service à partir d’une image de conteneur.
gcloud run services delete <service>Supprimer un service Cloud Run.
gcloud run services update-traffic <service>Mettre à jour le routage du trafic (par exemple, effectuer une migration progressive).
gcloud builds submit --tag <tag> .Construire et pousser une image de conteneur vers Artifact Registry (nécessite Cloud Build).

Tâches

CommandeDescription
gcloud run jobs listLister tous les jobs Cloud Run dans un projet/région.
gcloud run jobs describe <job>Afficher les détails d’un job spécifique.
gcloud run jobs create <job> --image <image>Créer un job à partir d’une image de conteneur.
gcloud run jobs execute <job>Déclencher manuellement l’exécution d’un job.
gcloud run jobs delete <job>Supprimer un job Cloud Run.

Pools de workers

CommandeDescription
gcloud run worker-pools listLister tous les pools de workers Cloud Run dans un projet/région.
gcloud run worker-pools describe <pool>Afficher les détails d’un pool de workers spécifique.
gcloud run worker-pools create <pool> --image <image>Créer un pool de workers à partir d’une image de conteneur.
gcloud run worker-pools delete <pool>Supprimer un pool de workers Cloud Run.

Workflows courants

  1. Préparer le code : Placez votre code source dans un dépôt Git.
  2. Construire l’image : Exécutez gcloud builds submit pour créer une image de conteneur.
  3. Déployer : Utilisez gcloud run services deploy (ou jobs create, worker-pools create) avec l’URI de l’image.
  4. Tester : Visitez l’URL du service, ou exécutez gcloud run jobs execute.
  5. Inspecter : Consultez les logs avec gcloud logging read.

Individual skills in this repo

This repo contains 18 individual skills — each has its own dedicated page.

google/agent-platform-skill-registry

Interact with the Gemini Enterprise Agent Platform Skill Registry to create and search for available skills. Use this skill to enable agents to register functionality or discover new capabilities.

google/alloydb-basics

Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB model context protocol (MCP) tools for automated database operations.

google/bigquery-basics

Manages datasets, tables, and jobs in BigQuery, and integrates with BigQuery ML and Gemini for advanced data analytics and AI-driven insights. Use when you need to interact with BigQuery, run SQL queries, manage BigQuery resources, or leverage BigQuery's built-in ML capabilities. Also use when performing data analysis, ingesting data into BigQuery, or developing AI applications on BigQuery.

google/cloud-sql-basics

This file generates or explains Cloud SQL resources. Use this file when the user asks to create a Cloud SQL instance or database for MySQL, PostgreSQL, or SQL Server. Cloud SQL manages third-party MySQL, PostgreSQL, and SQL Server instances as resources in Cloud SQL. For example, when Cloud SQL creates an open-source MySQL instance, the resulting resource is a Cloud SQL for MySQL instance that Google Cloud manages. Cloud SQL handles backups, high availability, and secure connectivity for relational database workloads.

google/firebase-basics

Use this skill whenever you are working on a project that uses Firebase products or services, especially for mobile or web apps.

google/gemini-api

Use when the user asks about using Gemini in an enterprise environment or explicitly mentions Vertex AI, Google Cloud, or Agent Platform. Guides the usage of the Gemini API on Agent Platform with the Google Gen AI SDK. Covers SDK usage (Python, JS/TS, Go, Java, C#), capabilities like multimodal inputs, tools, media generation, caching, batch prediction, and Live API.

google/gemini-interactions-api

Guides the usage of Gemini Interactions API on Gemini Enterprise Agent Platform. Use when the user wants to use the stateful, server-managed Interactions API for multi-turn conversations, background execution, streaming, structured output, and function calling on the Agent Platform.

google/gke-basics

Plan, create, and configure production-ready Google Kubernetes Engine (GKE) clusters using the golden path Autopilot configuration. Covers Day-0 checklist, Autopilot vs Standard, networking (private clusters, VPC-native, Gateway API), security (Workload Identity, Secret Manager, RBAC hardening), observability, scaling, cost optimization, and AI/ML inference. WHEN: create GKE cluster, provision GKE environment, design GKE networking, secure GKE, optimize GKE cost, GKE autoscaling, GKE inference, GKE upgrade, GKE observability, GKE multi-tenancy, GKE batch, GKE HPC, GKE compute class.

google/google-cloud-networking-observability

Investigates Google Cloud networking issues by analyzing logs, metrics, and diagnostics. Use when investigating VPC Flow Logs (including cost estimation), NAT, firewall, or threat logs, querying latency and throughput metrics, or running Connectivity Tests for path diagnostics. Don't use for generic VM management or non-observability tasks.

google/google-cloud-recipe-auth

Provides expert guidance on authenticating and authorizing to Google Cloud services and APIs, covering human users, service identities, Application Default Credentials (ADC), and best practices for secure access.

google/google-cloud-recipe-networking-observability

Investigates Google Cloud networking issues by analyzing logs, metrics, and diagnostics. Use when investigating VPC Flow Logs, NAT, firewall, or threat logs, querying latency and throughput metrics, or running Connectivity Tests for path diagnostics.

google/google-cloud-recipe-onboarding

Guides a developer's first steps on Google Cloud, covering account creation, billing setup, project management, and deploying a first resource. Use when a new developer wants to initialize their first Google Cloud project, configure billing, and verify deployment. Don't use for enterprise organization setup (use Google Cloud Setup guided flow for that instead). Don't use for complex multi-project architectures.

google/google-cloud-waf-cost-optimization

Generates cost optimization guidance for Google Cloud workloads based on the Google Cloud Well-Architected Framework (WAF). Use this skill to evaluate a workload, identify cost requirements and constraints, and provide actionable recommendations for build, deploy, and manage the workload cost-efficiently in Google Cloud.

google/google-cloud-waf-operational-excellence

Generates operations-focused guidance for Google Cloud workloads based on the design principles and recommendations in the Operational Excellence pillar of the Google Cloud Well-Architected Framework (WAF). Use this skill to evaluate a workload, identify operational requirements, and provide actionable recommendations for deployment, monitoring, and incident management.

google/google-cloud-waf-performance-optimization

Generates performance-focused guidance for Google Cloud workloads based on the design principles and recommendations in the Performance Optimization pillar of the Google Cloud Well-Architected Framework (WAF). Use this skill to evaluate a workload, identify performance requirements, and provide actionable recommendations for resource allocation, modular design, and elasticity.

google/google-cloud-waf-reliability

Generates reliability-focused guidance for Google Cloud workloads based on the design principles and recommendations in the Google Cloud Well-Architected Framework. Use this skill to evaluate a workload, identify reliability requirements, and provide actionable recommendations for build, deploy, and manage the workload reliably in Google Cloud.

google/google-cloud-waf-security

Generates security-focused guidance for Google Cloud workloads based on the design principles and recommendations in the Google Cloud Well-Architected Framework (WAF). Use this skill to evaluate a workload, identify security requirements, and provide actionable recommendations for IAM, network security, data protection, and operational security.

google/google-cloud-waf-sustainability

Generates sustainability-focused guidance for Google Cloud workloads based on the design principles and recommendations in the Google Cloud Well-Architected Framework (WAF). Use this skill to evaluate a workload, identify environmental impact requirements, and provide actionable recommendations to build, deploy, and manage the workload sustainably in Google Cloud.

Skills associés