Click Activate Cloud Shell at the top of the Google Cloud console. Set the default zone and project configuration: gcloud config set compute/zone us-central1-f Create a GKE cluster Run the following command to enable the Container Registry API: gcloud services enable container.googleapis.com Run the following to create a GKE cluster named fancy-cluster with 3 nodes: gcloud …
Click Activate Cloud Shell at the top of the Google Cloud console. Set Compute Zone gcloud config set compute/zone us-central1-a Create a New Cluster gcloud container clusters create hello-world You will use Project ID in many of the commands in this lab. The Project ID is conveniently stored in an environment variable …
Examine a table BigQuery offers a number of sample tables that you can run queries against. In this lab, you’ll run queries against the shakespeare table, which contains an entry for every word in every play. To examine the schema of the Shakespeare table in the samples dataset, run: bq show bigquery-public-data:samples.shakespeare In this …
Open BigQuery The BigQuery console provides an interface to query tables, including public datasets offered by BigQuery. In the Google Cloud Console, select Navigation menu > BigQuery: The Welcome to BigQuery in the Cloud Console message box opens. This message box provides a link to the quickstart guide and the release notes. Click Done. Query a public dataset …
The goal is to be able to commit code and have it trigger the pipeline which will in turn deploy the website. Your journey will be divided into two parts. First, you will build the website locally and deploy it to Firebase manually so you can gain an understanding of …
Start a new session in Cloud Shell and run the following command to create a new Cloud Source Repository named REPO_DEMO: gcloud source repos create REPO_DEMO Clone the contents of your new Cloud Source Repository to a local repo in your Cloud Shell session: gcloud source repos clone REPO_DEMO Go into …
Initial Setup Set the zone in gcloud: gcloud config set compute/zone us-west1-b Then Authorize Cloud Shell. Set the project ID: export PROJECT_ID=$(gcloud info –format=’value(config.project)’) Deploy a standard GKE cluster, which will prompt you to authorize and enable the GKE API. gcloud container clusters create gmp-cluster –num-nodes=1 –zone us-west1-b Log-based alert …
Create bucket and download application files Create a GCS bucket export PROJECT_ID=$(gcloud info –format=’value(config.project)’) gsutil mb gs://$PROJECT_ID Copy application files from Google managed project bucket gsutil cp -r gs://spls/gsp087/* gs://$PROJECT_ID Creating an instance template In the Cloud Console, go to Navigation menu > Compute Engine > Instance templates. Click Create Instance Template at the top of the …
Create a Compute Engine instance In the Cloud Console, select Navigation menu > Compute Engine > VM instances, then click Create Instance. Set the following fields: Name: my-opencensus-demo Region: us-west1 (Iowa) Zone: us-west1-b Series: N1 Machine type: n1-standard-1 (1vCPU, 3.75 GB memory) Boot disk: Click Change. Select version Debian GNU/Linux 10 (buster) for Debian OS and click Select. Identity and API access: Select Set access for each …
Create a Compute Engine instance In the Cloud Console dashboard, go to Navigation menu > Compute Engine > VM instances, then click Create instance. Fill in the fields as follows, leaving all other fields at the default value: Name: lamp-1-vm Region: us-west1 Zone: us-west1-b Series: N1 Machine type: n1-standard-2 Boot disk: Debian Firewall: Allow HTTP traffic …
Create and populate a Cloud Storage bucket In the Cloud Console, from the Navigation menu click Cloud Storage > Browser. Click Create bucket. Specify values for the following fields, leave all others at their defaults: Name: Enter a globally unique name. If the name you enter is not unique, you’ll see a message to try another …
Configure the Environment Enable Cloud Run API gcloud services enable run.googleapis.com Set the compute and run regions gcloud config set compute/region us-central1 gcloud config set run/region us-central1 Create a LOCATION environment variable LOCATION=”us-central1″ Write a simple application In Cloud Shell create a new directory named helloworld, then move your view into …
Set the default region and zone for all resources In Cloud Shell, set the default zone: gcloud config set compute/zone us-central1-a Set the default region: gcloud config set compute/region us-central Create multiple web server instances Create three new virtual machines in your default zone and give them all the same …
For this lab, you will set up two VPCs and add a cloud HA-VPN gateway in each. You will run two tunnels from each VPN gateway to demonstrate the HA-VPN gateway configuration for 99.99% SLA. You will create a global VPC network, vpc-demo, with two custom subnets in us-east1 and us-central1. In this VPC, …
Configure a custom network with VPC Flow Logs Create the custom network In the Console, navigate to Navigation menu > VPC network > VPC networks. Click Create VPC Network. Set the following values, leave all others at their defaults: Name: vpc-net Description: Enter an optional description For Subnet creation mode, click Custom. Set the following values, leave …
VPC Network Peering setup In this lab you have been provisioned 2 projects, the first project as a Project A and second as Project B. Project-A: Go back to first cloud shell and create a custom network: gcloud compute networks create network-a –subnet-mode custom Create a subnet within this VPC …
In Cloud Shell, use the following gcloud command to create a custom mode network called labnet: gcloud compute networks create labnet –subnet-mode=custom With this command you’re doing the following: gcloud invokes the Cloud SDK gcloud command line tool compute is a one of the groups available in gcloud, part of a nested hierarchy of command groups networks is a …
Explore the default network View the subnets The default network has a subnet in each Google Cloud region. In the Console, navigate to Navigation menu () > VPC network > VPC networks. Notice the default network with its subnets. View the routes Routes tell VM instances and the VPC network how to send traffic from an instance to a …