You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Google Cloud GKE实验执行make create报错:找不到debian-cloud/debian-9镜像

解决GKE实验中Terraform创建集群时的镜像找不到错误

问题原因

Debian 9(Stretch)已被Google Cloud终止官方镜像支持,导致Terraform配置中引用的debian-cloud/debian-9镜像无法被解析。

修复步骤

  • 打开实验代码目录下的modules/instance/main.tf文件,定位到第54行的google_compute_instance资源配置。
  • 将镜像名称从debian-cloud/debian-9替换为Google Cloud当前支持的Debian镜像,推荐使用:
    • debian-cloud/debian-11(Bullseye,长期支持版本)
    • 或debian-cloud/debian-12(Bookworm,最新稳定版)
  • 保存文件后,重新执行make create命令即可继续部署。

可选验证方法

如果想确认当前可用的Debian镜像,可在Cloud Shell中执行以下命令:

gcloud compute images list --filter="family:debian-*" --project=debian-cloud

内容的提问来源于stack exchange,提问作者hungnd

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.19 01:20:40