fix KUBERNETES_PUBLIC_ADDRESS value

Instead of 'value(address)' 'value(name)' should be used to make the following forwarding-rules creation command to work. With 'value(address)' it returns an error: "ERROR: (gcloud.compute.forwarding-rules.create) Could not fetch resource: - The resource 'projects/some-random-project/regions/us-central1/addresses/w.x.y.z' was not found"
This commit is contained in:
Niko Virtala
2017-08-07 14:15:10 +03:00
committed by Kelsey Hightower
parent 7631b261fb
commit f9486b081f

View File

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