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…
Author: examcert
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…
Command line – Google Exams Guide
We have an application called my-nginx running as a deployment with two Pods. We want to create a service of type ClusterIP for the workload running under the name my-nginx. To create a service of type ClusterIP, we can use the following code:apiVersion: v1kind: Servicemetadata: name: my-nginx labels: run: my-nginxspec: ports: – port: 80 protocol: TCP selector: run: my-nginx The preceding code can…
Viewing services – Google Cloud Cert Guide
By default, GKE creates services that are used by GKE itself. Those default services are set out here: The next screenshot shows these services in Cloud console, but as those are GKE core services, we should avoid interaction with them unless there is a clear reason to do so. Changing them might result in GKE…