I created preemptible instances in a managed instance group behind LB, I specified the preemptible option in the instance template.
Because GCP Compute Engine always terminates preemptible instances after they run for 24 hours, I need a way to launch new preemptible VMs before they goes down.
Is GCP Compute Engine launch new preemptible VMs before the current ones goes down when target size specified by the autoscaler ?
Maybe need to replace the Preemptible VMs several hours before they going down,
I am not sure what is the best way to do it, maybe with termination notices.
Basically what I need is always to keep on Preemptible VMs behind the LB.
What is the best way to implement this?