mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-09-17 01:20:41 +03:00
fix curl region command
This commit is contained in:
@@ -63,8 +63,7 @@ INTERNAL_IP=$(curl -s -H "Metadata-Flavor: Google" \
|
||||
```
|
||||
|
||||
```
|
||||
REGION=$(curl -s -H "Metadata-Flavor: Google" \
|
||||
http://metadata.google.internal/computeMetadata/v1/project/attributes/google-compute-default-region)
|
||||
REGION=$(curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/zone | cut -d/ -f 4 | sed 's/.\{2\}$//')
|
||||
```
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user