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.
See also
Overview
What You’ll Need¶
- A configured Google Cloud SDK.
- An existing Google Cloud project.
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¶
Select the Google Cloud project to use.
List all the available projects:
root@rok-tools-gcp:~# gcloud projects list PROJECT_ID NAME PROJECT_NUMBER myproject myproject 1111111111111 ...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=myprojectSet the corresponding Cloud SDK property:
root@rok-tools:~# gcloud config set project ${PROJECT_ID?}Ensure that the corresponding Cloud SDK environment variable is also set:
root@rok-tools:~# export CLOUDSDK_CORE_PROJECT=${PROJECT_ID?}
Select the Google Cloud region to use.
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 ...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-east1Set the corresponding Cloud SDK property:
root@rok-tools:~# gcloud config set compute/region ${REGION?}Ensure that the corresponding Cloud SDK environment variable is also set:
root@rok-tools:~# export CLOUDSDK_COMPUTE_REGION=${REGION?}
Select the Google Cloud zone to use.
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 ...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-bSet the corresponding Cloud SDK property:
root@rok-tools:~# gcloud config set compute/zone ${ZONE?}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:
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.