Search code examples
google-cloud-platformspinnaker

Problems using Halyard to configure GCP as cloud provider in a new Spinnaker installation when my GCP Network is not called 'Default'


I'm using this guidelines: https://www.spinnaker.io/setup/install/providers/gce/

When I'm running this line:

hal config provider google account add my-gce-account --project $PROJECT  --json-path $SERVICE_ACCOUNT_DEST

I get an error:

Problems in default.provider.google: ! ERROR Network default not found via any configured google

When I run the entire process in a project that has a 'default' named network, it works fine.

I was not able to find how I say to Halyard that my network has another name.

Could someone help me? Thanks


Solution

  • I had a similar problem, for my setup it turned out that bakery was running in the wrong zone, so expanding on the previous response:

    $ hal config provider google bakery edit --network <your-custom-network-name>
    $ hal config provider google bakery edit --zone <your-zone>
    $ sudo hal deploy apply
    

    The full spec for options can be found here: https://www.spinnaker.io/reference/halyard/commands/#hal-config-provider-google-bakery-edit

    Thanks to Sweeti Bharti's response, it led me to that response :)