Cloud Config supports many Google Cloud services. The complete list of supported services can be found at https://cloud.google.com/config-connector/docs/reference/overview. We will create a Cloud Storage bucket using Config Connector as a sample resource. Config Connector describes each resource well and provides some sample YAML code: Figure 7.31 – Config Connector sample YAML code The code to…
Author: examcert
Existing GKE cluster – Google Exams Guide
To enable Config Connector in the existing GKE cluster, we must enable the Config Connector add-on, enable Workload Identity, and create an Workload Identity: After enabling the Config Connector add-on and Workload Identity in an existing GKE cluster, we can proceed with IAM resources creation.Config Connector creates and manages Google Cloud resources by using an…
Infrastructure as Code – Google Exams Guide
IaC is a new way to deploy and manage infrastructure. It doesn’t only apply to cloud resources but to on-premises resources – for example, VMware vSphere. However, this book and this chapter will focus on IaC deployment in Google Cloud. We briefly mentioned IaC in Chapter 2, where we discussed various ways of deploying resources…
Google Cloud Functions example
Now that you’ve learned what Cloud Functions is, I’d like to show you how to implement a sample Cloud Function. We will guide you through optical character recognition (OCR) on Google Cloud Platform with Cloud Functions. Our use case is as follows: We need to download the samples first; we will use Golang as the…
Cloud Functions overview
The main advantage of Cloud Functions in Google Cloud is that you only need to write your code. Everything else will be done for you; there is no need to manage any infrastructure. Cloud Functions integrates very well within the Google Cloud products ecosystem. Functions listen and respond to various events – for example, when…
Cloud Run traffic management
Cloud Run allows you to specify which revision should receive traffic. It can be the latest revision, and you can split the traffic by percentages between different revisions. It is possible to use tags for testing, traffic migration, and rollbacks. To manage the traffic in a service, we need to navigate to Service and click…
Cloud Run application deployment
Now that we’ve learned about the Cloud Run architecture and two possible application deployment types, it is time to deploy our first application – a service: Figure 7.5 – Initial screen before deploying the Cloud Run application 2. We can choose from any container image we wish, but in our case, we will use a…
Cloud Run revisions – Google Exams Guide
Each deployment to service creates a revision. Once a revision has been created, it cannot be modified. If we wished to change the container image, we would need to create a new revision. The following figure shows active requests connecting to Service A via Revision A-3. We have two older revisions of Service A that…
Implementing Compute Solutions – Cloud Run, Cloud Functions, and Infrastructure as Code
This chapter aims to familiarize ourselves with various compute solutions and how to implement them. We are going to cover the following main topics: We will start with IaC, a stateless computing service where we can run containerized code. The next topic will be IaC, where we will learn about running code in response to…
Removing services – Google Exams Guide
Removal of services can be performed in Cloud console and by using the kubectl command-line tool. Cloud console In Cloud console, we need to navigate to Services & Ingress, select the desired service to be removed, and click the DELETE button: Figure 6.70 – Deleting services in Cloud console After a moment, the service is…