Home > Software design >  How can i make Springboot application start daily and shutdownn after completing process in GCP
How can i make Springboot application start daily and shutdownn after completing process in GCP

Time:11-23

i will be using helm charts to deploy my application in GCP.i want to make my springboot shutdown after completing its process and then on next day start on its own at a particular time -complete the process and shut down .Is this possible in GCP?

CodePudding user response:

I believe that Kubernetes Cronjob is what you need.

Example: https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#creating-a-cron-job

CodePudding user response:

You can use Cloud Run Jobs or Batches to complete that and by paying ONLY when you process consume ressources. (Not the case with Kubernetes and GKE where you pay for your cluster (and your node pools) even if nothing runs on it)

  • Related