3 ms·
Right now, I run ad hoc containers/bots cheaply on GCP by using Cloud Scheduler to turn on a preemptible VM which invokes a Docker container, run a function, an
by minimaxir 8y ago
Right now, I run ad hoc containers/bots cheaply on GCP by using Cloud Scheduler to turn on a preemptible VM which invokes a Docker container, run a function, and immediately shut it down. (technical details here: https://minimaxir.com/2018/11/cheap-cron/ https://minimaxir.com/2018/11/cheap-cron/)
Cloud Run seems to obsolete that workflow (and it fits well within the free tier), and I couldn't be happier. Will watch the keynote tomorrow for more!
- ec109685 8y agoYou could run gke on preemptible VM’s and this on that: https://cloud.google.com/kubernetes-engine/docs/how-to/preemptible-vms https://cloud.google.com/kubernetes-engine/docs/how-to/preem...
- minimaxir 8y agoI talk about that in the article; you can't scale down to 0 nodes in GKE so it's still more expensive. (it may be possible although not easy: https://stackoverflow.com/questions/51655781/google-cloud-kubernetes-cost-when-rescaled-to-0-nodes https://stackoverflow.com/questions/51655781/google-cloud-ku...)
- ec109685 8y agoGood points.