As with any other service in Google Cloud, the Kubernetes Engine API must be enabled before using the service. Once the API is enabled, we can proceed with our Kubernetes cluster creation. As mentioned, a GKE deployment can be created with two modes—Autopilot and Standard. We will choose the Standard mode, but we encourage you…
Cloud Shell – Google Cloud Exam Guide
Cloud Shell and its gcloud set of commands can be used to manage GKE together with Cloud Console. The gcloud command can be handy when you want to script and automate GKE-related tasks. Cloud SDK Cloud SDK provides Cloud Client Libraries, allowing you to interact with GKE resources. SDK libraries are available in the following…
GKE Autopilot – Google Cloud Exam Guide
Autopilot is a relatively new product from Google Cloud—it was released in February 2021. Following this announcement, GKE now offers two modes of usage: Standard and Autopilot. We just discussed Standard mode, where we can configure multiple GKE options and fine-tune it to our liking. Autopilot mode, however, aims at delivering industry best practices and…
GKE Standard – Google Cloud Exam Guide
As with a pure Kubernetes architecture, a cluster is the foundation of GKE. GKE clusters consist of one or more control planes and multiple worker machines where the workload runs, called nodes. The control plane and nodes are the main components of the container orchestration system: Figure 5.4 – GKE standard architecture Control plane The…
Volumes – Google Cloud Exam Guide
Volumes serve as storage units that containers within a Pod can access. Certain volume types rely on ephemeral storage, meaning they do not persist once the Pod is terminated. Examples of such ephemeral storage types include emptyDir, which can be used as temporary storage for applications. Similar to CPU and memory resources, we can manage…
GKE architecture – Google Cloud Exam Guide
As we mentioned before, GKE is based on Kubernetes itself. We will briefly explain the core Kubernetes components and how they relate to GKE. Because this book is aimed toward helping you ace the Associate Cloud Engineer (ACE) exam, we won’t explain how to build a CI/CD pipeline and deploy it to GKE. If you…
Implementing Compute Solutions – Google Kubernetes Engine (Part 1)
This chapter aims to cover various compute solutions’ implementation. We are going to cover the following main topics: We are very excited to introduce the concept of container orchestration as I’m seeing an everyday increase in traction toward containers. Kubernetes and its native Google Cloud implementation GKE is a very sophisticated and innovative product on…
Command line – Google Cloud Exam Guide
We need three steps to achieve the same configuration we did using the Cloud console. The first section creates an MIG based on a pre-configured template:gcloud beta compute instance-groups managed create INSTANCE_GROUP_NAME –project=PROJECT_NAME –base-instance-name=INSTANCE_GROUP_NAME –size=MINIMUM_SIZE –template=TEMPLATE_NAME –zones=ZONE_NAME_X,ZONE_NAME_Y,ZONE_NAME_z –target-distribution-shape=EVEN To create a named port, we need to execute the following command:gcloud compute instance-groups managed set-named-ports INSTANCE_GROUP_NAME…
Console – Google Cloud Exam Guide
Let’s create an MIG. To do so, we need the following items: In the Cloud console, navigate to Compute Engine and the Instance groups section: Figure 4.68 – The initial configuration section of the MIG In the location section, we can choose single or multiple zones. If a single zone is selected, a target distribution…
Changing an instance network
Google Cloud allows changes to the networking configuration of instances. Possible permitted modifications are as follows: All those actions must be performed when the instance is powered off, and it cannot be a part of a managed instance group (MIG) or network endpoint group (NEG). Console After stopping the VM instance, we need to edit…