Set Up Cloud Environment for Google Cloud

This guide will walk you through setting up the necessary environment that you will use throughout your installation to create cloud resources on Google Cloud.

What You’ll Need

Important

The Google Cloud project should be allowlisted for accessing GKE alpha features. Reach out to your Google Cloud account manager to get you invited for alpha participation.

Procedure

  1. Select the Google Cloud project to use.

    1. List all the available projects:

      root@rok-tools-gcp:~# gcloud projects list
      PROJECT_ID          NAME                PROJECT_NUMBER
      myproject           myproject           1111111111111
      ...
      
    2. Specify the project you will use to create all the necessary resources:

      root@rok-tools:~# export PROJECT_ID=<YOUR_PROJECT_ID>
      

      Replace <YOUR_PROJECT_ID> with your desired Google Cloud project ID. For example:

      root@rok-tools:~# export PROJECT_ID=myproject
      
    3. Set the corresponding Cloud SDK property:

      root@rok-tools:~# gcloud config set project ${PROJECT_ID?}
      
    4. Ensure that the corresponding Cloud SDK environment variable is also set:

      root@rok-tools:~# export CLOUDSDK_CORE_PROJECT=${PROJECT_ID?}
      
  2. Select the Google Cloud region to use.

    1. List all the available regions:

      root@rok-tools:~# gcloud compute regions list
      NAME                     CPUS   DISKS_GB    ADDRESSES  RESERVED_ADDRESSES  STATUS  TURNDOWN_DATE
      ...
      us-east1                 0/72   0/40960     0/69       0/21                UP
      us-east4                 8/72   0/40960     1/69       0/21                UP
      us-west1                 2/72   34/40960    1/69       2/21                UP
      ...
      
    2. Specify the region you will use to create all the necessary resources:

      root@rok-tools:~# export REGION=<MY_REGION>
      

      Replace <MY_REGION> with your desired region. For example:

      root@rok-tools:~# export REGION=us-east1
      
    3. Set the corresponding Cloud SDK property:

      root@rok-tools:~# gcloud config set compute/region ${REGION?}
      
    4. Ensure that the corresponding Cloud SDK environment variable is also set:

      root@rok-tools:~# export CLOUDSDK_COMPUTE_REGION=${REGION?}
      
  3. Select the Google Cloud zone to use.

    1. List all the available zones:

      root@rok-tools:~# gcloud compute zones list
      NAME                       REGION                   STATUS  NEXT_MAINTENANCE  TURNDOWN_DATE
      us-east1-b                 us-east1                 UP
      us-east1-c                 us-east1                 UP
      ...
      
    2. Specify the zone you will use to create all the necessary resources:

      root@rok-tools:~# export ZONE=<MY_ZONE>
      

      Replace <MY_ZONE> with your desired zone. For example:

      root@rok-tools:~# export ZONE=us-east1-b
      
    3. Set the corresponding Cloud SDK property:

      root@rok-tools:~# gcloud config set compute/zone ${ZONE?}
      
    4. Ensure that the corresponding Cloud SDK environment variable is also set:

      root@rok-tools:~# export CLOUDSDK_COMPUTE_ZONE=${ZONE?}
      

Verify

Ensure that Google Cloud SDK has been properly configured:

root@rok-tools:~# gcloud config list
[compute]
region = us-east1
zone = us-east1-b
[core]
account = user@example.com
disable_usage_reporting = True
project = myproject

Summary

You have successfully set up the environment necessary for creating Cloud resources on Google Cloud.

What’s Next

The next step is to configure access to Arrikto’s private container registry.