Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)22k · #10311

google-cloud-global-frontend-configuration

Skill này làm gì

Skill này giúp thiết lập cửa trước cho một ứng dụng web trên Google Cloud, gồm cân bằng tải, bộ nhớ đệm và quy tắc bảo mật web. Skill dành cho các đội muốn có một điểm vào toàn cầu nhanh và được bảo vệ.

Khi nào nên dùng

  • ✓Khi bạn muốn thiết lập một Application Load Balancer bên ngoài toàn cầu cho ứng dụng của mình.
  • ✓Khi bạn cần thêm bộ nhớ đệm Cloud CDN hoặc bảo vệ web Cloud Armor vào một load balancer.
  • ✓Khi bạn muốn ánh xạ yêu cầu khối lượng công việc thành thiết kế load balancer qua các câu hỏi có hướng dẫn.

Liên kết skill

https://github.com/google/skills/blob/main/skills/cloud/google-cloud-global-frontend-configuration/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/google/skills/blob/main/skills/cloud/google-cloud-global-frontend-configuration/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thiết lập một load balancer toàn cầu có bộ nhớ đệm CDN và bảo vệ Cloud Armor trước ứng dụng web của tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill đi qua sáu bước khám phá để ánh xạ nhu cầu của bạn thành một thiết kế đơn giản theo thực hành tốt nhất. Sau đó skill triển khai thiết lập bằng gcloud, hoặc tạo mã Terraform nếu không có gcloud.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Google Cloud global external Application Load Balancer Configuration Skill

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:google-cloud-global-frontend-configuration)" and append agent-skills/1.0 (skill:google-cloud-global-frontend-configuration) to User-Agent headers.

Purpose & Agent Guidance

This skill enables the agent to guide users through a structured, 6-step discovery process to design and deploy Google Cloud global external Application Load Balancers (incorporating Cloud CDN, Cloud Armor, and Service Extensions).

Assumptions & Target Environments:

  • This skill assumes it is called from environments (such as Gemini CLI, Antigravity, etc.) where the Google Cloud CLI (gcloud) can be executed.
  • If gcloud is not available or accessible, the skill cannot perform automated resource discovery or managed deployment actuation. In such environments, the skill will limit its support to guiding the design and generating Terraform HCL configurations.

When executing this skill, the agent must:

  • Map user workload requirements to simplified, opinionated best-practice configurations using actual Google Cloud product names.
  • Progressively disclose details, hiding advanced complexity unless the user explicitly asks for customization.
  • Leverage the reference documents in the references/ directory to perform resource discovery, code generation, actuation, and drift detection.

The 6-Step Configuration Flow

Step 1: Basics

  • Project Discovery: Consult references/resource-discovery.md to auto-detect the Google Cloud project ID. Present the discovered project ID to the user.
  • Ask the user for the foundational details of their load balancer:
    • Name & Description: What should we call this load balancer?
    • Protocol Selection: Do they need HTTP, HTTPS, or both?
    • Certificate Management: Do they want to use Google-managed certificates or bring their own existing certificates?

Step 2: Origin Configuration

Help the user define their backend workloads through a strictly sequential, step-by-step loop. Do NOT ask everything at once. All steps are mandatory.

  • Sub-step A - Origin Setup: Ask if they have a single origin or need multi-origin support. Wait for response.
  • Sub-step B - Origin Types: Ask them to select the backend types from: Cloud Storage Buckets, Compute Engine Managed Instance Groups (MIGs), Google Kubernetes Engine (GKE) Clusters, Cloud Run Services, or External/Internet origins (IP/FQDN). Wait for response.
  • Sub-step C - Origin Definition Loop: Execute the following loop sequentially for EACH origin type selected in Sub-step B. Wait for the user to answer for one origin before asking about the next:
    • Resource Discovery: For Google Cloud-native origins (Cloud Storage, MIGs, GKE, Cloud Run), consult references/resource-discovery.md to fetch resources. Present the list starting with 1. Create New, 2. NA. For External/Internet origins, just ask for the FQDN/IP.
    • Workload Type (CRITICAL): Immediately after they define the resource, ask exactly what type of workload is being served:
      1. Static Images / Objects (Static content, images, videos, styling assets)
      2. Cacheable API (Read-only, public APIs where cached data is acceptable)
      3. Uncacheable API / Transactions (Transactional endpoints, login, checkout, account changes)
      4. Dynamic Web (SSR) (Dynamic pages, server-side rendered apps, custom dynamic sessions)
  • Sub-step D - Routing Rules: Once ALL origins have been fully defined one by one, ask how traffic should be routed between them (Path-based, header-based, or query-param-based). Wait for response.
  • Sub-step E - Logging: After routing is established, ask if they want to enable Cloud CDN logging, and if so, at what sampling rate (0-100%). Wait for response.

Step 3: Traffic Management & Extensibility

  • Provide a brief summary of the origins and routing rules defined in Step 2.
  • Ask if they need to enable Advanced Traffic Management settings (such as granular weighted load balancing, traffic mirroring, or **Cloud Load Balancing Service Extensio
Câu hỏi thường gặp

Điều gì xảy ra nếu không có gcloud?

Skill giới hạn ở hướng dẫn thiết kế và mã Terraform, không triển khai tự động.

Skill có thêm Cloud Armor không?

Có. Skill có thể đưa bảo vệ WAF của Cloud Armor vào thiết kế.

Có bao nhiêu bước khám phá?

Sáu bước.

Chi tiết

Mô tả gốc của tác giả

Guides agents through a 6-step discovery process to design and deploy Google Cloud global external Application Load Balancers with Cloud CDN, Cloud Armor, and Service Extensions, mapping workload requirements to best-practice configurations. Use when: - Designing, configuring, or deploying a Google Cloud global external Application Load Balancer, Cloud CDN, Cloud Armor WAF, or Service Extensions. - Discovering existing Google Cloud resources (Cloud Storage, MIGs, GKE, Cloud Run) to use as backends. - Generating production-grade Terraform HCL or gcloud CLI scripts for global external Applicatio

repo: google/skills

Độ phổ biến

Sao GitHub
22k
Vị trí xếp hạng
#10311
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự