I’d like to preface this by saying we’re just toying with autoscaler out of curiosity and we’re not using this for business or critical stuff, we just figured it’d be cool to play with.
Firstly, there is 0 mention of authenticating autoscaler with GCE in the docs. It took an hour of digging through the autoscaler source and GC documentation to find that we may need a
.json file containing a key and various bits, passed as an env:
GOOGLE_APPLICATION_CREDENTIALS=/path/to/file.json although I’m increasingly starting to think that this isn’t correct at all. This at least lets autoscaler start and attempt to provision VMs.
Now at the point where autoscaler is trying to create instances, it falls at the first hurdle trying to create the firewall group with a 403, which I’m pretty sure is related to the incorrect auth we’re using.
I’ve also noticed a few inconsistencies/errors in the documentation for Google Cloud on autoscale.drone.io but I can’t find the source repo for that site (I presume it’s private)- it would be nice to see this public so we can contribute fixes to it?
Can you shed some light on how this is supposed to work because we’re lost. Cheers