mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-07-27 14:13:53 +03:00
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:

committed by
Kelsey Hightower

parent
7631b261fb
commit
f9486b081f
@@ -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)')
|
||||
```
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user