Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 云部署管理器:内部负载平衡器创建问题_Google Cloud Platform_Gcloud - Fatal编程技术网

Google cloud platform 云部署管理器:内部负载平衡器创建问题

Google cloud platform 云部署管理器:内部负载平衡器创建问题,google-cloud-platform,gcloud,Google Cloud Platform,Gcloud,我使用以下代码尝试通过部署管理器创建一个内部负载平衡器 - name: {{ env["name"] }}-port389-healthcheck type: compute.v1.healthChecks properties: type: tcp tcpHealthCheck: { port: 389 } - name: {{ env["name"] }}-port389-backend-service type: compute.beta.backend

我使用以下代码尝试通过部署管理器创建一个内部负载平衡器

- name:  {{ env["name"] }}-port389-healthcheck
type: compute.v1.healthChecks
properties:
    type: tcp
    tcpHealthCheck: {
    port: 389
    }

- name: {{ env["name"] }}-port389-backend-service
type: compute.beta.backendService
properties:
    healthChecks:
    - $(ref.{{ env["name"] }}-port389-healthcheck.selfLink)
    backends:
    - group: $(ref.{{ env['name'] }}-master-instance-groups-managed.instanceGroup)
    - group: $(ref.{{ env['name'] }}-slave-instance-groups-managed.instanceGroup)
    protocol: TCP
    region: {{ properties['region'] }}
    loadBalancingScheme: INTERNAL

- name: {{ env["name"] }}-port389-forwarding-rule
type: compute.beta.forwardingRule
properties:
    loadBalancingScheme: INTERNAL
    ports: 
    - 389
    network: default
    region: {{ properties["region"] }}
    backendService: $(ref.{{ env["name"] }}-port389-backend-service.selfLink)
使用以下命令运行时出错

Waiting for create operation-1478651694403-540d36cfdcdb9-cba25532-08697daf...failed.
ERROR: (gcloud.beta.deployment-manager.deployments.create) Error in Operation operation-1478651694403-540d36cfdcdb9-cba25532-08697daf:
errors:
- code: RESOURCE_ERROR
location: /deployments/forgerock/resources/forgerock-frontend-port389-backend-service-us-central1
message: 'Unexpected response from resource of type compute.beta.backendService:
    400 {"code":400,"errors":[{"domain":"global","message":"Invalid value for field
    ''resource.loadBalancingScheme'': ''INTERNAL''. Load balancing scheme must be
    external for a global backend service.","reason":"invalid"}],"message":"Invalid
    value for field ''resource.loadBalancingScheme'': ''INTERNAL''. Load balancing
    scheme must be external for a global backend service.","statusMessage":"Bad Request","requestPath":"https://www.googleapis.com/compute/beta/projects/carbide-tenure-557/global/backendServices"}'
它似乎是使用
https://www.googleapis.com/compute/beta/projects/carbide-tenure-557/global/backendServices
而不是
https://www.googleapis.com/compute/beta/projects/carbide-tenure-557/backendServices


我知道这是beta功能,但尝试使用
GDM
开发此解决方案,而不是混合使用
gcloud
命令和
GDM
类型而不是
type:compute.beta.backendService
使用:


类型:compute.v1.regionBackendService

谢谢您的帮助。几周前,当我在
Beta
文档中找到它时,我确实尝试过这个,但仍然失败了,但我使用的是
compute.Beta.regionBackendService