字段“ instance.networkInterfaces [0] .accessConfigs [0] .natIP”的值无效:指定的外部IP地址未在区域中保留

时间:2018-09-27 16:53:09

标签: kubernetes google-cloud-platform

当我运行命令时:

gcloud beta compute instance-groups managed rolling-action start-update gke-playground-pool-test-1-420d5b80-grp  --version template=elk-pool-template-us-west1-3 --zone us-west1-b --max-surge 1 --max-unavailable 1 --type opportunistic --force

我遇到以下错误:

ERROR: (gcloud.beta.compute.instance-groups.managed.rolling-action.start-update) Could not fetch resource:
 - Invalid value for field 'resource.instanceTemplate': ''. Unable to create an instance from instanceTemplate elk-pool-template-us-west1-3 in zone us-west1-b:
        Invalid value for field 'instance.networkInterfaces[0].accessConfigs[0].natIP': The specified external IP address 'xx.xxx.xxx.xx' is not reserved in region 'us-west1'.

1 个答案:

答案 0 :(得分:0)

  

指定的外部IP地址'xx.xxx.xxx.xx'未保留在   区域“ us-west1”

您描述的问题通常是由试图声明未保留的外部IP的模板引起的。要使这些IP可用,您必须先通过在GCP中购买来保留它们。您可以找到有关外部IP地址here.

的更多信息

如果保留的IP地址可用,则可以使用它。在另一种情况下,服务将分配此时将可用的外部IP。您可以找到有关保留IP地址here的更多信息。