Deploying and Implementing Networking Resources
Deploying and Implementing Compute Engine Resources
This course has been designed to teach you how to deploy network and compute resources on Google Cloud Platform. The content in this course will help prepare you for the Associate Cloud Engineer exam.
- To understand key networking and compute resources on Google Cloud Platform
- Be able to explain different networking and compute features commonly used on GCP
- Be able to deploy key networking and compute resources on Google Cloud Platform
- Those who are preparing for the Associate Cloud Engineer exam
- Those looking to learn more about GCP networking and compute features
To get the most from this course then you should have some exposure to GCP resources, such as VPCs and Compute Instances. However, this is not essential.
In this demonstration, I'm going to show you how to create an autoscaled managed instance group from an instance template. However, before I create the autoscaled managed instance group, I need to first create an instance template.
To create an instance template, what I need to do is browse my GCP Console and then go to the Instance Templates page. This is found under the Compute Engine page. From here, I simply click Create Instance Template. For this exercise, I'm going accept the default settings. My machine type will be n1-standard-1, my image will be a latest Debian image, actually, it'll be the latest Debian image. My boot disk is going be named after my instance name.
Because this is a default image, the template is going to use the default VPC network and an ephemeral external IP address will be assigned. With my template configuration set, what I can do is scroll down and click Create at the bottom to create the template that I'm going to use for my autoscaled managed instance group.
Now, with my instance template created, I can now create my autoscaled managed instance group. To do this, what I need to do is browse to the Instance Groups page in the GCP Console, and then form here I can click create an instance group. I'll call my managed instance group here mymig for managed instance group and then I need to tell GCP which zone to locate the group in. So I'm going to select the default here which is us-central1 and us-central1a.
Now we can see here on the left-hand side I'm actually creating a managed instance group versus an unmanaged instance group. Now, under the Instance Template dropdown, I can select my instance-template-1 that I just created earlier. Since we're creating an autoscaled instance group, we're going to leave autoscaling turned on. And under Autoscaling Policy, we'll base our autoscaling on CPU usage and then what we'll do is leave the defaults here for the target CPU usage. If we hover over the icon here, what this is going to do is tell me that autoscaling will add or remove instances in the group to maintain this particular level of CPU usage on each instance.
Under minimum and maximum number of instances, this is, as it states, the minimum number of instances in my managed instance group and the maximum number of instances in my group. Now, if I hover over the icon here for maximum, we'll see that this is indeed the largest number of VM instances that's allowed, even if the target is exceeded. On the flip side, if we hover over minimum number of instances, we can see that this number here is the least number of VM instances that the group will contain even if the target is not met. So we're always going to have one instance and we're never going to have more than 10 instances.
Now, if we hover over the cool down period here, we can see that what this is, this is the number of seconds to wait before collecting information from a new instance. Now, essentially what this should be is at least the amount of time it takes to initialize the new instance when it spins up. We'll leave this at the default here. We're not going to do any auto healing here. We'll leave this turned off by default and now to create my new autoscaled managed instance, I can simply click Create.
After a few minutes, I'll see my new autoscaled managed instance group up and running in my coil here. And you can see we get the green check box telling me that my instance group is ready to go. So let's call it a wrap here and I'll see you over in the next lesson.
About the Author
Tom is a 25+ year veteran of the IT industry, having worked in environments as large as 40k seats and as small as 50 seats. Throughout the course of a long an interesting career, he has built an in-depth skillset that spans numerous IT disciplines. Tom has designed and architected small, large, and global IT solutions.
In addition to the Cloud Platform and Infrastructure MCSE certification, Tom also carries several other Microsoft certifications. His ability to see things from a strategic perspective allows Tom to architect solutions that closely align with business needs.
In his spare time, Tom enjoys camping, fishing, and playing poker.