From 2fdc4bbed924265f61e538d15bf1461b5ce2e82a Mon Sep 17 00:00:00 2001 From: Mohamed Osman Date: Tue, 26 Mar 2019 09:50:50 +1100 Subject: [PATCH] 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 --- docs/install/getting-started-knative-app.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/install/getting-started-knative-app.md b/docs/install/getting-started-knative-app.md index e7d635d63..4180ffd8d 100644 --- a/docs/install/getting-started-knative-app.md +++ b/docs/install/getting-started-knative-app.md @@ -132,7 +132,7 @@ assigned an external IP address. 1. To find the host URL for your service, enter: ```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 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: ```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