gke-upgrades
它能做什么
这个技能帮助规划并执行 Google Kubernetes Engine 集群的升级。它适用于在版本变更前需要明确计划的平台团队。
适用场景
- ✓当你需要为 Standard 或 Autopilot GKE 集群制定升级计划的时候。
- ✓当你想为 GKE 集群准备升级前和升级后的检查清单的时候。
- ✓当你在为 GKE 选择发布渠道或维护窗口的时候。
技能链接
https://github.com/google/skills/blob/main/skills/cloud/gke-upgrades/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的生产 GKE 集群规划一次升级到较新版本,并提供升级前和升级后的检查清单。”
每周 5 个新技能,1 分钟读完。
工作原理
它会收集你的集群模式、版本、发布渠道和工作负载的详情。然后它会据此编写计划,包含 gcloud 命令和回滚说明,并优先使用带维护窗口的自动升级。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
GKE Upgrades & Maintenance
Produce clear, actionable documents — upgrade plans, runbooks, or checklists — tailored to the user's environment. Output should be specific to their cluster mode, release channel, version, and workload types rather than generic advice.
Always frame guidance around the auto-upgrade model: auto-upgrade with maintenance windows and exclusions is the preferred control mechanism.
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-upgrades)"
and append agent-skills/1.0 (skill:gke-upgrades) to User-Agent headers.
Context Gathering
Before producing any upgrade artifact, establish:
- Cluster mode — Standard or Autopilot? (Autopilot has no node pool management, mandatory resource requests, no SSH)
- Current and target versions — Node version skew must be within 2 minor versions of control plane.
- Release channel — Rapid, Regular, Stable, or Extended.
- Environment topology & Rollout Sequencing — Single vs multi-cluster, dev/staging/prod tiers, and whether Rollout Sequencing is used.
- Workload sensitivity — StatefulSets, databases, GPU, long-running batch need special handling.
If the user provides these upfront, skip straight to the deliverable. If they're vague, fill in reasonable defaults and flag assumptions.
Core Principles
GKE versions follow Kubernetes version terminology: Major.Minor.Patch (e.g., 1.30.1-gke.1187000). A Minor version bump (e.g., 1.29 → 1.30) introduces new features and APIs. A Patch version bump (e.g., 1.30.1 → 1.30.2) introduces security and bug fixes. Ensure the user understands this distinction.
- Sequential control plane, skip-level node pools -- Control plane upgrades are sequential (N → N+1 → N+2). Node pools support skip-level (N+2) upgrades.
- Control plane first -- Control plane must be upgraded before node pools. Nodes can trail by up to 2 minor versions.
- Environment progression -- Always upgrade dev/staging before production. Use Rollout Sequencing (preferred) to automate and enforce this progression across environments (e.g., dev → staging → prod), or manually coordinate version progression if Rollout Sequencing is not used.
- Workload-aware -- Upgrade strategy depends on what's running (stateless, stateful, GPU, batch).
- Release channels first -- Always recommend release channels. Note that "No channel" (static versioning) is deprecated and clusters should be migrated to release channels.
- Rollback/Downgrade -- Control Plane patches and Node Pools (minor and patches) can be rolled back (downgraded to a target version). GKE supports a 2-step Control Plane minor upgrade where step 1 is rollbackable. Other Control Plane minor version rollbacks are NOT customer-doable and require GKE Support.
- Node pool upgrade ordering -- When upgrading multiple node pools, always recommend sequential ordering: upgrade non-critical/stateless pools first (acting as a canary) to verify cluster health before upgrading critical stateful (database) or GPU pools.
Release Channels
| Channel | Best for | SLA |
|---|---|---|
| Rapid | Dev/test, early feature access | No upgrade stability SLA |
| Regular (default) | Most production | Full SLA |
| Stable | Mission-critical, stability-first | Full SLA |
| Extended | Compliance, EoS enforcement control | Full SLA |
Support Lifecycle
Standard GKE versions are supported for 14 months after they become available in the Regular channel. This means:
- Rapid channel versions may be supported for longer than 14 months (since they enter Rapid before Regular).
- Stable channel versions may be supported for less than 14 months (since they enter Stable after Regular).
- Extended support extends this period up to 24 months. Note that extra cost applies only during the extended support period (months 15-24).
Current Capabilities
- Extended channel math: 14 months of standard support + ~10 months of extended support ≈ 24 months total per minor version. Even on Extended, forced upgrades still occur: if you take no action, GKE auto-upgrades the cluster at End of Support — averaging a minor version bump roughly ev
常见问题
它会替我升级集群吗?
不会。它只生成计划和运行手册,由你决定何时运行命令。
它需要先了解什么?
集群模式、当前和目标版本、发布渠道,以及工作负载的敏感程度。
推荐的方法是什么?
推荐使用带维护窗口和排除项的自动升级作为首选控制方式。
详情
作者的原始描述
Plans, executes, and validates Google Kubernetes Engine (GKE) cluster upgrades and maintenance operations for both Standard and Autopilot clusters. Produces upgrade plans, pre/post-upgrade checklists, maintenance runbooks with gcloud commands, release channel strategy, and troubleshooting guides. Handles node pool upgrade strategies (surge, blue-green), version compatibility, PDB management, and workload-specific concerns (stateful, GPU, operators). Use this skill whenever the user mentions GKE upgrades, Kubernetes version bumps, node pool maintenance, GKE patching, cluster version management,
repo: google/skills
热度
- GitHub 星标
- 22k
- 排名
- #10300
- 许可证
- 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 上的第一步,包括选择项目、关联计费,以及部署第一个资源。