mirror of https://github.com/knative/docs.git
Fix getting domain name in Getting Started with Knative App Deployment (#993)
* Fixed getting domain name Domain information is available in the route resource and not the the knative service. Updating sample command to reflect the change. Environment GKE 1.11.7-gke.4, Knative 0.4.0 * updated HOST_URL script to use route
This commit is contained in:
parent
2fcf0fa69d
commit
2fdc4bbed9
|
@ -132,7 +132,7 @@ assigned an external IP address.
|
||||||
1. To find the host URL for your service, enter:
|
1. To find the host URL for your service, enter:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl get ksvc helloworld-go --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
kubectl get route helloworld-go --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||||
NAME DOMAIN
|
NAME DOMAIN
|
||||||
helloworld-go helloworld-go.default.example.com
|
helloworld-go helloworld-go.default.example.com
|
||||||
```
|
```
|
||||||
|
@ -140,7 +140,7 @@ assigned an external IP address.
|
||||||
You can also export the host URL as a variable using the following command:
|
You can also export the host URL as a variable using the following command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
export HOST_URL=$(kubectl get ksvc helloworld-go --output jsonpath='{.status.domain}')
|
export HOST_URL=$(kubectl get route helloworld-go --output jsonpath='{.status.domain}')
|
||||||
```
|
```
|
||||||
|
|
||||||
If you changed the name from `helloworld-go` to something else when creating
|
If you changed the name from `helloworld-go` to something else when creating
|
||||||
|
|
Loading…
Reference in New Issue