谷歌计算全球转发规则要求区域

问题描述 投票:1回答:1

我正在尝试部署全局转发规则。我的yaml文件在下面

resources:

- name: rule

  type: compute.v1.forwardingRule

  properties:

    portRange: 80-80

    IPProtocol: TCP

    target: projects/{{ env["project"] }}/global/targetHttpProxies/myproxy

    IPAddress: xx.xx.xx.xx

当我运行命令时:gcloud deployment-manager deployments创建grule --config test.yaml

它给出了错误,说明需要资源属性区域。它要求区域,但我正在尝试创建一个全球转发规则,我不需要给予区域。

google-compute-engine google-cloud-platform
1个回答
0
投票

也许它应该是compute.v1.globalForwardingRule

© www.soinside.com 2019 - 2024. All rights reserved.