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.
pull/312/head
Alban Crequy 2018-02-06 16:01:48 +01:00
parent 4f5cecb5ed
commit dadd66bd98
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ gcloud compute target-pools add-instances kubernetes-target-pool \
``` ```
KUBERNETES_PUBLIC_ADDRESS=$(gcloud compute addresses describe kubernetes-the-hard-way \ KUBERNETES_PUBLIC_ADDRESS=$(gcloud compute addresses describe kubernetes-the-hard-way \
--region $(gcloud config get-value compute/region) \ --region $(gcloud config get-value compute/region) \
--format 'value(name)') --format 'value(address)')
``` ```
``` ```