Gcloud Flashcards

1
Q

GCP services have specific CLI tools

A
  1. Cloud Storage - gsutil
  2. Cloud BigQuery - bq
  3. Cloud Bigtable - cbt
  4. Kubernetes - kubectl (in addition to Gcloud which is used to manage clusters)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

gcloud init

A

initialize or reinitialize gcloud

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

gcloud config list

A

lists all properties of the active configuration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Sets the specified property in your active configuration

A

–> gcloud config set core/project VALUE
–> gcloud config set compute/region VALUE
–> gcloud config set compute/zone VALUE
–> gcloud config set core/verbosity VALUE(debug)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Syntax - gcloud config set SECTION/PROPERTY VALUE

A

–> core, compute - SECTIONS
–> project, region, zone - PROPERTIES
E.g. : gcloud config set compute/region us-east2
gcloud config set compute/zone us-east1-b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Creating Compute Instances

A

gcloud compute instances create [NAME]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Creating Instance Templates

A

gcloud compute instance-templates create/delete/describe/list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Using Instance Tempate to create an instance

A

gcloud compute instances create my-test-vm –sourc e-instance-template=my-instance-templatewith-custom-image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly