Skip to content

GCP: If default network is not available in a project, cld env create is failing #162

@vikomall

Description

@vikomall

In GCP, running into following issue if the default network is not avaiable.

cld env create env-gke environment-gke.yaml
cld env list
{
"data": [
{
"env_definition": "{u'environment': {u'app_deployment': {u'project': uproject-name', u'type': u'gke', u'target': u'gcloud', u'zone': u'us-central1-b'}}}",
"location": "/Users/xxx/.cld/data/deployments/environments/env-gke-2017-12-01-05-05-24",
"name": "env-gke",
"output_config": "{'error': '<HttpError 400 when requesting https://container.googleapis.com/v1/projects/project-name/zones/us-central1-b/clusters?alt=json returned "(1) network "default" does not exist.\n\t(2) Network "default" has no route to the default internet gateway. To fix this, add a route with destRange \'0.0.0.0/0\' and nextHopGateway \'default-internet-gateway\'.">'}",
"status": "create-failed"
}
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions