From dadd66bd98db7cef1c0d47ae024e779c5e70ef29 Mon Sep 17 00:00:00 2001 From: Alban Crequy Date: Tue, 6 Feb 2018 16:01:48 +0100 Subject: [PATCH] Fix env variable KUBERNETES_PUBLIC_ADDRESS Symptoms: $ echo $KUBERNETES_PUBLIC_ADDRESS kubernetes-the-hard-way With this patch, I get the IP address instead of the name. --- 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 06012d9..2e2e050 100644 --- a/docs/08-bootstrapping-kubernetes-controllers.md +++ b/docs/08-bootstrapping-kubernetes-controllers.md @@ -269,7 +269,7 @@ gcloud compute target-pools add-instances kubernetes-target-pool \ ``` KUBERNETES_PUBLIC_ADDRESS=$(gcloud compute addresses describe kubernetes-the-hard-way \ --region $(gcloud config get-value compute/region) \ - --format 'value(name)') + --format 'value(address)') ``` ```