Jx: ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=project "jx-poc" has no network named "default".

Created on 25 May 2018  路  9Comments  路  Source: jenkins-x/jx

Hi all,
when trying to create a Kubernetes cluster in GCP we get the following error message:
ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=project "jx-poc" has no network named "default".
It seems that I have all required privileges since I can manually create a Kubernetes instance or a network in our project.
It seems that I cannot specify as parameter a network name while launching that command.
Please advise!

aregke

Most helpful comment

it looks like we need to enhance the jx create clsuter gke to be able to take the network name as a parameter?

All 9 comments

it looks like we need to enhance the jx create clsuter gke to be able to take the network name as a parameter?

Anyone working on this? I also need to specify a custom network name.

The release is underway but we've been hitting Github a lot this past hour so being rate limited. Release should be available in a couple of hours.

Waiting for the update, too :)

any word?

Add the subnet flag..
--subnetwork=default-us-central1

--subnetwork=default <-- this flag worked for me
ex: gcloud container clusters create test-cluster --num-nodes=3 --subnetwork=default

Is @reysravanga doing the right thing? Can I use that in my automation script?

Yes, the subnetwork can be provided in the --subnetwork option when the GKE cluster is created.

Was this page helpful?
0 / 5 - 0 ratings