Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions modules/serverless-openshift-routes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -30,12 +35,13 @@ kind: Service
metadata:
name: <service_name>
annotations:
serving.knative.openshift.io/disableRoute: true
serving.knative.openshift.io/disableRoute: "true"
spec:
template:
spec:
containers:
- image: <image>
...
----
.. Apply the `Service` resource:
+
Expand Down