全部技能
gke-basics
创建 GKE 集群、获取 kubectl 凭据并部署工作负载。
- 属于 google/skills
- 1.6万次安装
- 运维与部署 · 容器集群
适合什么时候用
你已有容器镜像但还没有集群,需要先决定用 Autopilot 还是 Standard 再部署。
举个例子
你对 AI 说
用 gke-basics 在 us-central1 创建一个 Autopilot 集群,获取凭据,并部署我的 nginx 镜像。
你会拿到
- 已创建 Autopilot 集群
- 已配置 kubectl 凭据
- 已部署 nginx 工作负载
它会怎么做
- 默认选 Autopilot,只有需要自定义 sysctl、节点污点或 hostPath DaemonSet 时才用 Standard。
- Autopilot 的 CPU 请求会向上取整到 250m 的倍数,limits 交由 requests 自动匹配。