- 谷歌云技能提升
- (Quest(Google Kubernetes引擎中的安全工作负载
- (实验室(在Kubernetes引擎上保护应用程序-三个例子
在";Provisioning the Kubernetes Engine cluster";,运行命令
make create
我遇到了一个错误:
enter code here
│ Error: Error resolving image name 'debian-cloud/debian-9': Could not find image or family debian-cloud/debian-9
│
│ with module.bastion.google_compute_instance.instance,
│ on modules/instance/main.tf line 54, in resource "google_compute_instance" "instance":
│ 54: resource "google_compute_instance" "instance" {
步骤1:运行命令查看可用的图像
gcloud compute images list | grep debian
步骤2:在项目根目录下,运行以下命令
vi ./terraform/modules/instance/main.tf
步骤3:在VIM正常模式下,通过键入/debian-9
搜索debian-9,点击进入
// Specify the Operating System Family and version.
boot_disk {
initialize_params {
image = "debian-cloud/debian-9"
}
}
步骤4:就我的情况而言,debian-10是可用的。所以我把上面的块代码改成
// Specify the Operating System Family and version.
boot_disk {
initialize_params {
image = "debian-cloud/debian-10"
}
}
步骤5:将目录更改为项目根目录,然后重新运行命令make create
。