From c039fe3056cdcd3cee8c26a3607b2e084855b3c9 Mon Sep 17 00:00:00 2001 From: Ashleigh Brennan Date: Thu, 16 Sep 2021 15:04:47 -0500 Subject: [PATCH] SRVKS-772: Add disableRoute note --- modules/serverless-openshift-routes.adoc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/serverless-openshift-routes.adoc b/modules/serverless-openshift-routes.adoc index f40c4a74ac09..e8e606ffbebc 100644 --- a/modules/serverless-openshift-routes.adoc +++ b/modules/serverless-openshift-routes.adoc @@ -20,7 +20,12 @@ You must modify the replaceable values in the example commands for the following .Procedure . Create a Knative service that includes the `serving.knative.openshift.io/disableRoute=true` annotation: -.. Optional. Create a Knative service resource: ++ +[IMPORTANT] +==== +The `serving.knative.openshift.io/disableRoute=true` annotation instructs {ServerlessProductName} to not automatically create a route for you. However, the service still shows a URL and reaches a status of `Ready`. This URL does not work externally until you create your own route with the same hostname as the hostname in the URL. +==== +.. Create a Knative `Service` resource: + .Example resource [source,yaml] @@ -30,12 +35,13 @@ kind: Service metadata: name: annotations: - serving.knative.openshift.io/disableRoute: true + serving.knative.openshift.io/disableRoute: "true" spec: template: spec: containers: - image: +... ---- .. Apply the `Service` resource: +