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
parent
79a3f79b27
commit
61b45e57ee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue