A typical operation when working with instances is resizing a disk. We do it mainly when the disk is full and needs more capacity. Console To increase the disk size, we need to go to the storage section of the Cloud console and click Disks. Choose the desired disk you want to increase by clicking…
Author: examcert
Command line – Google Associate Cloud Engineer Study Guide
The command-line interface consists of two steps. The first step is to create a disk, and the second is to attach it to the instance. To create a disk, we will initiate the following command:gcloud compute disks create additional-disk \ –zone=europe-west1-b\ –size=200GB \ –type=pd-balanced The next step is to attach the newly created disk to the instance:gcloud compute…
Console – Google Associate Cloud Engineer Study Guide
In the Cloud console, we will start by adding an additional disk: Figure 4.36 – Editing the instance in the Cloud console Figure 4.37 – The Additional disks section in the EDIT section of the instance Figure 4.38 – A table with a comparison of all available disk types in Google Cloud 5. Once all…
Windows Server instances – Google Associate Cloud Engineer Study Guide
Google Cloud allows us to use Windows Server images alongside Linux ones. Before initiating the RDP connection to the Windows Server-based instance, we need to change our initial password. To do this, click on your Windows Server instance and choose Set Windows password: Figure 4.31 – Setting the Windows instance password You can either reset…
Bastion hosts – Google Associate Cloud Engineer Study Guide
Bastion hosts are VMs that provide secure access to other VMs in a GCP network. They should be hardened to be more secure than other VMs in the network. This includes using strong passwords and SSH keys, keeping the software up to date, and disabling unnecessary services. The idea is to restrict their access to…
Console – Google Associate Cloud Engineer Study Guide
Adding a GPU when a VM is created isn’t any different from creating a normal VM. To add a GPU to the VM, choose the GPU VM under Machine family. Once selected, you can specify the VM type and choose the desired amount of vCPUs, RAM, and GPUs: Figure 4.24 – A GPU added to…
Command line – Google Associate Cloud Engineer Study Guide
To create a VM and add the public SSH key to the instance metadata during the creation process, use the following command:gcloud compute instances create VM_NAME –metadata=ssh-keys=PUBLIC_KEY Once the VM has been created, we can update its metadata with the public SSH key using the following set of instructions: Figure 4.20 – The SSH key…
Starting and stopping a VM – Google Associate Cloud Engineer Study Guide
Let’s now focus on start and stop activities, which are a great introduction to working with the Cloud console and the gcloud command line. You might ask yourself, why do we need to stop an instance? If resources aren’t consumed, you don’t need to pay for them. Running instances that you don’t need might increase…
Command line – Google Associate Cloud Engineer Study Guide
VM creation can be achieved using command-line tools. The equivalent of the previously described instance creation using Cloud Shell can be achieved using the following command line:gcloud compute instances create instance-1 –project=wmarusiak-book-351718 –zone=europe-west1-b –machine-type=e2-medium –network-interface=network-tier=PREMIUM,subnet=default –maintenance-policy=MIGRATE –provisioning-model=STANDARD –create-disk=auto-delete=yes,boot=yes,device-name=instance-1,image=projects/ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20220419,mode=rw,size=50,type=projects/wmarusiak-book-351718/zones/europe-west1-b/diskTypes/pd-ssd The preceding command specifies the following options: The aforementioned options have multiple switches and allow for precise…
Creating GCE – Google Associate Cloud Engineer Study Guide
Let’s create a VM running Ubuntu Linux as the operating system. Console Figure 4.1 – Creating an instance in the Cloud console Figure 4.2 – The first part of instance creation – an instance name and instance region with a zone Figure 4.3 – The Machine configuration section with several machine family options to choose…