这里的帮助将是非常感谢的,这是我已经挣扎了一段时间的事情。我正在尝试使用Google Deployment Manager部署VPN。据我所知,我需要以下内容:
VpnTargetGateway
ForwardingRules
VpnTunnels
ReservedIP我的ForwardingRules出了点问题。在这里,我指定了已经创建的保留IP地址,并将其分配给目标网关。下面是我的代码:
resources:
- name: vmx-forwarding-rules
type: compute.v1.forwardingRule
properties:
region: us-central1
IPAddress: https://www.googleapis.com/compute/v1/projects/{{env["project"] }/regions/us-central1/addresses/vmx-ip
IPProtocol: "ESP"
target: https://www.googleapis.com/compute/v1/projects/{{ env["project"] }/regions/us-central1/targetVpnGateways/vmx-vpn-gateway下面是我收到的错误:
message: u"Unexpected response from resource of type compute.v1.forwardingRule: 400 {statusMessage=Bad Request, errors=[{message=Invalid value for field 'resource': ''. A reserved IP should be specified for forwarding rule with target type TARGET_VPN_GATEWAY, domain=global, reason=invalid}]}">]>
有没有人有这方面的经验,或者知道更好的位置来寻找Deployment Manager的帮助?
谢谢
发布于 2016-01-07 12:57:02
在您的YAML配置中尝试:
resources:
- name: vmx-ip
type: compute.v1.address
properties:
region: us-central1
- name: vmx-forwarding-rules
type: compute.v1.forwardingRule
properties:
region: us-central1
IPAddress: $(ref.vmx-ip.address)
IPProtocol: "ESP"
target: https://www.googleapis.com/compute/v1/projects/{{ env["project"] }}/regions/us-central1/targetVpnGateways/vmx-vpn-gatewayhttps://stackoverflow.com/questions/34644837
复制相似问题