mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-07 00:48:01 +01:00
27 lines
1010 B
Plaintext
27 lines
1010 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * serverless/getting-started-knative-services.adoc
|
|
|
|
[id="interacting-serverless-apps_{context}"]
|
|
= Interacting with your serverless application
|
|
|
|
To verify that your serverless application has been deployed successfully, you must get the host URL created by Knative, and then send a request to that URL and observe the output.
|
|
|
|
NOTE: If you changed the application name from `helloworld-go` to a new name when creating the `service.yaml` file, replace `helloworld-go` in the commands with the new name you created.
|
|
|
|
.Procedure
|
|
|
|
. Find the host URL.
|
|
+
|
|
----
|
|
oc get ksvc helloworld-go
|
|
NAME URL LATESTCREATED LATESTREADY READY REASON
|
|
helloworld-go http://helloworld-go.default.example.com helloworld-go-4wsd2 helloworld-go-4wsd2 True
|
|
----
|
|
. Make a request to your cluster and observe the output.
|
|
+
|
|
----
|
|
$ curl http://helloworld-go.default.example.com
|
|
Hello World: Go Sample v1!
|
|
----
|