Update 01-prerequisites.md

On newly created GCP projects, default region and zone are not set, leading to `REGION=$(curl -s -H "Metadata-Flavor: Google" \
  http://metadata.google.internal/computeMetadata/v1/project/attributes/google-compute-default-region)` failing with a 404 in section [08-bootstrapping-kubernetes-controllers](https://github.com/kelseyhightower/kubernetes-the-hard-way/blob/master/docs/08-bootstrapping-kubernetes-controllers.md#configure-the-kubernetes-api-server)
pull/691/head
Jared Markell 2022-02-05 13:50:40 -08:00 committed by GitHub
parent 79a3f79b27
commit 61b45e57ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,13 @@ Set a default compute zone:
gcloud config set compute/zone us-west1-c
```
Set the default compute region and compute zone on the project itself:
```
gcloud compute project-info add-metadata \
--metadata google-compute-default-region=us-west1,google-compute-default-zone=us-west1-c
```
> Use the `gcloud compute zones list` command to view additional regions and zones.
## Running Commands in Parallel with tmux