<p>I have scripts that collect data all the time on Google Cloud VMs, but there are times when I have more or less data to collect, so I need to volatile and automatically allocate CPU and memory so I don't spend so much money. Searching I saw that the best way is to create container and orchestrate them correctly, google offers Kubernetes, Cloud Run or Google Compute Engine, which is the simplest and best for this problem? Or if there is another platform that solves it better, which one?</p>
<p>Ps. I'm new in Cloud Computing, sorry if I made a mistake or said something that doesn't exist.</p>

Gabriel Franco
<p>Definitely forget about GCE ( compute engine ),</p>
<p>It remains GKE or Cloud run, you have to choose depending on your needs, here is the best article I be found:</p>
<p><a href="https://cloud.google.com/blog/products/containers-kubernetes/when-to-use-google-kubernetes-engine-vs-cloud-run-for-containers" rel="nofollow noreferrer">https://cloud.google.com/blog/products/containers-kubernetes/when-to-use-google-kubernetes-engine-vs-cloud-run-for-containers</a></p>
<p><a href="https://i.stack.imgur.com/UTfJS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UTfJS.png" alt="enter image description here" /></a></p>
<p>However2 if you choose to use k8s, you can manage resources within the deployments tank manifests in the &quot;resources&quot; section. The request would be the minimum allocated resources to your deployment and the limits will be the maximum resources the deployment can use. You may play with this maybe.</p>
