gke-custom-golden-image-discovery
它能做什么
这项技能帮助 AI 智能体把你的 GKE 设置与正确的 golden 基础镜像相匹配。适合正在构建自定义节点镜像、但不知道确切镜像名称的人。
适用场景
- ✓当你需要为自定义 GKE 节点镜像选择 golden 基础镜像时。
- ✓当你知道 GKE 版本、操作系统或架构,但不知道镜像名称时。
- ✓当你想确认哪个基础镜像适合使用 gVisor 或加速器的节点设置时。
技能链接
https://github.com/google/skills/blob/main/skills/cloud/gke-custom-golden-image-discovery/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在开启 gVisor 的情况下,哪个 golden 基础镜像适合 1.34 版本的自定义 GKE 节点?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会根据 GKE 版本、操作系统、架构和加速器等集群信息,在查找表中匹配正确的基础镜像。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
GKE Golden Base Image Discovery Expert
You are an expert at helping users find the correct "golden" base image for creating custom GKE images. You can bridge the gap between a user's high-level description and the technical JSON requirements.
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-custom-golden-image-discovery)"
and append agent-skills/1.0 (skill:gke-custom-golden-image-discovery) to User-Agent headers.
Information Gathering & Inference
If a user doesn't know their exact configuration, use the following Context Clues and Sensible Defaults to infer the values:
| Field | Context Clues | Default Value |
|---|---|---|
| GKE Version | (Required) Must be 1.34.1-gke.2909000 or later. | N/A |
| Operating System | "I like Google's OS" -> COS; "I need Ubuntu/standard Linux" -> Ubuntu. | COS |
| Architecture | "Using ARM/Ampere" -> ARM64; "Standard/Intel/AMD" -> X86_64. | X86_64 |
| gVisor Enabled | "Need a sandbox" or "gVisor" mentioned -> true. | false |
| Has Accelerators | Mention of "GPU", "accelerator", "Nvidia", "TPU", or any specific hardware models (e.g., T4, A100, H100, L4) -> true. | false |
| Enforce Signed Modules | "Hardened nodes" or "Signed modules" mentioned -> true. | false |
| Cgroup Mode | Almost all GKE 1.26+ clusters use V2. Only V1 if explicitly legacy. | CGROUP_MODE_V2 |
| TPU | Mention of "TPU" -> true. | false |
Discovery Workflow
- Extract Info: Parse the user's request for the GKE Version and any context clues for the fields above. Be proactive: if a user mentions any specialized hardware or security requirements, map them to the corresponding technical flags.
- Determine Minor Version: Extract the major/minor version (e.g.,
1.34). - Fetch Data:
curlthe mapping:https://www.gstatic.com/gke-image-maps/base-images/node-config-to-base-images-<MINOR_VERSION>.json - Filter Logic:
- Match
versionexactly. - Match
node_infousing the inferred or provided values:image_family:COS_CONTAINERD(COS) orUBUNTU_CONTAINERD(Ubuntu).- Other fields match exactly.
- Match
- Refine Search: If no exact match is found with defaults, try toggling
cgroup_modetoCGROUP_MODE_V1orgvisor_enabledtofalseand inform the user. - Warns about invalid input: If the inputted GKE version is invalid, inform the user that the version is unsupported.
Example Output
"Based on your setup (GKE 1.34.1-gke.2909000, COS, and using the new H100 GPUs), I've inferred you need the X86_64 image with Accelerators enabled. The golden base image is: gke-1341-gke2909000-cos-125-19216-0-115-c-nvda"
常见问题
需要什么 GKE 版本?
技能说明,GKE 版本必须为 1.34.1-gke.2909000 或更高。
如果我不清楚某些设置怎么办?
智能体会根据上下文线索和合理的默认值推断可能的取值。
它会创建集群吗?
不会。它只负责找到镜像,常规的集群创建由另一项技能完成。
详情
作者的原始描述
Discovers golden base images for creating GKE custom node images based on technical specifications or context clues. Use when finding the golden base image for custom GKE node creation, mapping cluster configuration parameters (GKE version, OS, architecture, accelerators, gVisor, cgroups) to image names, or querying GKE base image maps. Don't use for general GKE cluster creation (use gke-cluster-creation) or standard node pool management (use gke-basics).
repo: google/skills
热度
- GitHub 星标
- 22k
- 排名
- #10286
- 许可证
- 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 上的第一步,包括选择项目、关联计费,以及部署第一个资源。