cloud-run-button icon indicating copy to clipboard operation
cloud-run-button copied to clipboard

How to specify that I need 2nd generation of execution environment?

Open evil-shrike opened this issue 2 years ago • 2 comments

Hi,

currently by default a deployed service has 1st generation of execution environment. Is it possible to specify somehow that I need the 2nd generation?

evil-shrike avatar Feb 22 '23 09:02 evil-shrike

There isn't currently an option for that but you could probably do it manually via the hooks. I'll leave this open as a feature request to add an option for it.

jamesward avatar Feb 27 '23 13:02 jamesward

yep, in a postcreate hook:

gcloud run services update $K_SERVICE --execution-environment=gen2 --region=$GOOGLE_CLOUD_REGION

evil-shrike avatar Feb 28 '23 09:02 evil-shrike