From the course: Google Cloud Platform Essential Training for Developers: Cloud-Native Development with Gemini

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Managing legacy workloads with Compute Engine

Managing legacy workloads with Compute Engine

Okay, so now what we're going to do is we're going to provision a standard VM with Compute Engine. And the idea here is that, think about legacy applications that you just can't easily containerize. So let's say you have an old app, it's been around for, I don't know, 10, 20 years, and you can't put it into a container very easily to run on Cloud Run or GKE. So let's go ahead and use a standard VM. And we're going to use gcloud here, just like we did for the previous two. let's go ahead and jump in the Cloud Shell. And from here, what we're gonna do is we're just gonna set up your old classic VM, and I'm gonna give you some code here that you can use. And so the code here, what we're gonna do is we're gonna call this VM a legacy monolith VM, and we're just gonna create this virtual machine. We're gonna give it an E2 CPU medium instance type, and the OS is going to be Debian 11. So we're gonna use Linux here, And the project ID zone, all that has already been set with our variables…

Contents