2

f1-micro我正在尝试使用除服务帐户之外的所有默认值创建实例模板。使用我创建的那个,带有我的自定义 vpc 和自定义角色。

Creating instance template "frontend-it" failed. Error: Invalid JSON payload received. Unknown name "enableFlowLogs" at
 'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "description" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "privateIpGoogleAccess" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "logConfig" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "gatewayAddress" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "network" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "allowSubnetCidrRoutesOverlap" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "id" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "fingerprint" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "kind" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "privateIpv6GoogleAccess" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "creationTimestamp" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "purpose" at 
'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field. Invalid JSON payload received. Unknown name "region" at
 'like_instance_model.networking_model.network_interfaces[0].subnetwork': Cannot find field.

会是什么?

最好的问候人们。

4

3 回答 3

0

我还遇到了无法为我的所有自定义 vpc 复制实例模板的问题。它可以通过更改为默认 vpc 来创建。我的解决方案是

  1. 添加新子网 VPC Networks => MyVPC => Subnets => 添加子网 => asia-east1-subnet2
  2. 复制现有实例模板
  3. 展开管理、安全、磁盘、网络、单一租户 => 网络 => 子网更改为您刚刚创建的子网,然后更改回您的原始子网
  4. 然后你可以按创建
于 2021-01-14T05:41:23.293 回答
0

我遇到了同样的问题并遵循了 Narender Gakka 的解决方法,但仍然出现错误。

看起来 a 标志已从模板中删除。较旧的模板可能包含此标志,但创建类似尝试添加此弃用(?)标志。

错误:(gcloud.beta.compute.instance-templates.create-with-container)无法识别的参数:--reservation-affinity=any

于 2021-01-09T14:07:35.220 回答
0

以防万一有人感兴趣

  1. 选择源模板
  2. 创建类似的
  3. 根据要求添加/修改/更改新模板
  4. 而不是点击页面底部的创建,点击“命令行”
  5. RUN IN CLOUDSHELL 并执行和授权命令
于 2021-01-08T15:02:39.803 回答