From 339343b56738ee23c0c603d3a195441b510d6ffd Mon Sep 17 00:00:00 2001 From: sophie Date: Wed, 17 Jul 2024 14:45:08 +0800 Subject: [PATCH] fix the error when retrieving the $REGION --- docs/08-bootstrapping-kubernetes-controllers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/08-bootstrapping-kubernetes-controllers.md b/docs/08-bootstrapping-kubernetes-controllers.md index ede6ce0..caf2bfb 100644 --- a/docs/08-bootstrapping-kubernetes-controllers.md +++ b/docs/08-bootstrapping-kubernetes-controllers.md @@ -64,7 +64,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) +> http://metadata.google.internal/computeMetadata/v1/instance/zone | awk -F/ '{print $4}' | sed 's/-[a-z]$//') ``` ```