Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GCP: Configurations on app service's versions

I have been searching around gcloud documentations and around the web but could not find the way to set configurations for gcloud app services' version.

It has been done in my other project but I have forgotten how to update it again. What I wanted to do was to set maximum versions limit on single service - for example:

gcloud app services page

So that it only keeps up to 10 (for example) in the versions list, and also set to ignore certain version (for example, do not delete version "maintenance")

gcloud app versions page gcloud app versions page

this is my app.yaml

env: flex
runtime: nodejs
service: application-one
resources:
  memory_gb: 4.0
  disk_size_gb: 10
manual_scaling:
  instances: 1
env_variables:
  NODE_ENV: 'prod'
  APIHOST: 'http://10.146.0.1:32100'

On GCP documentation, it did mention about the maximum number of services and versions that we can deploy depends on your app's pricing, but I couldn't find out how to set max versions per app again.

GCP documentation

Does anyone have the documentation or any idea what the command is?

like image 906
Jee Mok Avatar asked Nov 14 '25 19:11

Jee Mok


1 Answers

I’m from the Google Cloud Platform support. At the moment, it’s not possible to set the maximum versions per App. This limit can be changed only internally after a request from the owner of the project if you have a support package.

That limit though isn’t for a specific service but for the app in general and again it can’t be set for specific services.

The functionality to prevent a version from getting deleted also doesn’t exist at the moment.

However, the above ideas could improve the App Engine product. The best course of action here would be to open a feature request for the product by following the instructions here.

Also, if you file the requests, please file separate ones (one for the limit per service and another one for ignoring a specific version)

Hopefully, enough people will star the feature requests so that the relevant team can look into it.

like image 177
siamsot Avatar answered Nov 17 '25 11:11

siamsot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!