GERENCIADOR DE IMPLEMENTAÇÃO DE NUVEM: Balanceador de Carga Interno crie um problema

1

Estou usando o seguinte para tentar criar um balanceador de carga interno por meio do Deployment Manager usando o seguinte código

- 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)

Ele erra quando executado com o seguinte

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"}'

Parece estar criando usando o https://www.googleapis.com/compute/beta/projects/carbide-tenure-557/global/backendServices em vez de https://www.googleapis.com/compute/beta/projects/carbide-tenure-557/backendServices

Eu sei que isso é uma funcionalidade beta, mas estou tentando desenvolver essa solução usando GDM em vez de uma mistura de gcloud de comandos e GDM

    
por Nicholas Irving 18.11.2016 / 07:58

1 resposta

2

Consulte o link para saber como resolver isso.

Essencialmente, diz que precisamos usar compute.v1.regionBackendService

    
por 06.01.2017 / 21:31