gke-productionize
它能做什么
这项技能指导 AI 智能体对 GKE 集群及其工作负载进行完整的生产就绪评审。适合准备正式上线的团队。
适用场景
- ✓当你想让 GKE 集群或应用做好正式上线的准备时。
- ✓当你需要审计 GKE 的可扩展性、安全性、可靠性和可观测性时。
- ✓当你想要一份上线前涵盖备份、灾难恢复和费用的检查清单时。
技能链接
https://github.com/google/skills/blob/main/skills/cloud/gke-productionize/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请评审我的 GKE 集群和应用,告诉我上线前需要修复哪些问题。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先查看当前集群和应用的设置,然后把每个方面交给更专门的 GKE 技能去检查或设置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
GKE Productionize Skill
This skill acts as a high-level orchestrator for preparing a GKE cluster and its workloads for production readiness.
[!IMPORTANT] This is a meta-skill or orchestrator skill. You are expected to invoke and run many other specialized skills listed in this document as part of the overall productionization process. Do not attempt to implement all production readiness features directly within this skill; instead, use this skill to assess the environment and then delegate to the specific skills for each domain.
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:gke-productionize)"
and append agent-skills/1.0 (skill:gke-productionize) to User-Agent headers.
Scope
This skill is adaptable to:
- A single application (already on Kubernetes or not).
- A set of applications.
- A target cluster.
Workflow
1. Discovery Phase
Before making recommendations, discover the current state of the environment.
Cluster Discovery
Run these commands to understand the cluster setup:
Check cluster details:
gcloud container clusters describe {cluster_name} --location {location} --project {project}Check for Autopilot vs Standard: Look for the following block in the describe output:
autopilot: enabled: trueCheck release channel: Look for
releaseChannel.
Workload Discovery
If a specific application is targeted, discover its configuration:
- Get deployment/statefulset details:
kubectl get deployment {app_name} -n {namespace} -o yaml - Check for dedicated namespace and labels:
kubectl get namespace {namespace} -o yaml(Look for Pod Security Standards labels). - Check for dedicated service account usage:
kubectl get pods -n {namespace} -o custom-columns="NAME:.metadata.name,SERVICE_ACCOUNT:.spec.serviceAccountName" - Check for resource requests and limits.
- Check for liveness, readiness, and startup probes.
- Check for HPA:
kubectl get hpa -n {namespace} - Check for PDB:
kubectl get pdb -n {namespace} - Check for NetworkPolicies:
kubectl get networkpolicy -n {namespace}
2. Production Readiness Assessment
Before implementation, you MUST run the skills for each relevant specialized area listed below and incorporate its guidance into your assessment and plan. Failure to do so will result in a non-compliant production configuration.
A. App Onboarding (Pre-Kubernetes)
If the application is not yet running on GKE, you MUST run the
gke-app-onboarding skill for planning containerization, image building, and
basic deployment.
B. Scalability & Resource Management
Ensure workloads have appropriate resources and autoscaling.
- Action: You MUST run the
gke-workload-scalingskill for configuring HPA, VPA, and resource limits.
C. Observability
Ensure adequate logging and monitoring are in place.
- Action: You MUST run the
gke-observabilityskill for setting up Cloud Logging, Monitoring, and Managed Prometheus.
D. Reliability
Ensure high availability and graceful degradation.
- Action: You MUST run the
gke-reliabilityskill for configuring regional clusters, PDBs, and health probes.
E. Security
Harden the cluster and workloads.
- Action: You MUST run the
gke-platform-securityandgke-workload-securityskills for Workload Identity, Network Policies, and Shielded Nodes. - Namespace Isolation: Ensure workloads run in dedicated namespaces with Pod Security Standards (PSS) enforced via labels.
- Least Privilege: Ensure workloads use dedicated ServiceAccounts instead
of the
defaultServiceAccount.
F. Backup & Disaster Recovery
Ensure stateful data is protected.
- Action: You MUST run the
gke-backup-drskill for configuring Backup for GKE and restore procedures.
G. Edge Security & Ingress
Secure external access.
- Action: You MUST run the
gke-service-networkingskill for Gateway API, Ingress, and Cloud Armor.
H. Cost Optimization
Ensure efficient use of resources.
- Action: You MUST run the
gke-cost-optimizationskill for st
常见问题
它会自己完成每一项修复吗?
不会。它负责协调评审,并把每个方面交给专门的技能处理。
它评审哪些方面?
它评审可扩展性、安全性、可靠性、可观测性、备份和灾难恢复,以及费用。
它能评审一个很小的改动吗?
不能。它用于完整的就绪评审。如果只针对某一方面,更适合使用专门的 GKE 技能。
详情
作者的原始描述
Orchestrates comprehensive production readiness reviews and assessments for GKE clusters and workloads across scalability, security, reliability, observability, backup/DR, and cost optimization. Use when asked to productionize, prepare, assess, audit, or review a GKE cluster or workload before going live to production. Don't use for deep-dive single-domain implementation (use specific domain skills like gke-workload-scaling, gke-platform-security, gke-workload-security, gke-service-networking, gke-reliability instead).
repo: google/skills
热度
- GitHub 星标
- 22k
- 排名
- #10295
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
finding-google-skills
22k帮你的智能体为某项设置任务找到合适的 Google 指南,例如托管、数据库、存储、登录或 AI 模型服务。
gcloud
22k帮你的智能体编写并检查 Google Cloud gcloud 命令,在运行任何内容之前查阅准确的语法,避免猜测参数。
google-cloud-recipe-auth
22k引导你的智能体了解 Google Cloud 的身份与访问管理,包括人员和服务如何登录,以及它们各自获得哪些权限。
google-cloud-recipe-onboarding
22k带领新开发者完成在 Google Cloud 上的第一步,包括选择项目、关联计费,以及部署第一个资源。