Problem:
I am deploying an appengine standard service - nodejsv10. However after the traffic is migrated to the new version, the old version is still left running with the instance count being listed as 2 or 1. This is still the case for multiple deployments over the past week that have not received traffic for well over 24 hours (so I don't think it's a console delayed refresh issue).
I don't want to be billed for these instances as I don't need them. And manually having to delete these old version seems like a silly user experience.
Deployment command: gcloud beta app deploy
app.yaml
env: standard
instance_class: F4
inbound_services:
- warmup
automatic_scaling:
min_idle_instances: 1
max_idle_instances: 1
min_pending_latency: automatic
max_pending_latency: automatic
max_concurrent_requests: 15
min_instances: 1