From 3d69e2f514d0600e9ec63d5b51f50c1cb02c7545 Mon Sep 17 00:00:00 2001 From: leandroid Date: Sat, 20 Nov 2021 10:38:31 -0800 Subject: [PATCH] Previous command returned 404 curl -s -H "Metadata-Flavor: Google" \ http://metadata.google.internal/computeMetadata/v1/project/attributes/google-compute-default-region --- docs/08-bootstrapping-kubernetes-controllers.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/08-bootstrapping-kubernetes-controllers.md b/docs/08-bootstrapping-kubernetes-controllers.md index ede6ce0..c23afb0 100644 --- a/docs/08-bootstrapping-kubernetes-controllers.md +++ b/docs/08-bootstrapping-kubernetes-controllers.md @@ -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\}$//') ``` ```