1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/describe-function-kn.adoc
2023-10-30 10:13:25 -04:00

36 lines
854 B
Plaintext

:_mod-docs-content-type: PROCEDURE
[id="describe-function-kn_{context}"]
= Describing a function
The `kn func info` command prints information about a deployed function, such as the function name, image, namespace, Knative service information, route information, and event subscriptions.
.Procedure
* Describe a function:
+
[source,termnal]
----
$ kn func info [-f <format> -n <namespace> -p <path>]
----
+
.Example command
[source,terminal]
----
$ kn func info -p function/example-function
----
+
.Example output
[source,terminal]
----
Function name:
example-function
Function is built in image:
docker.io/user/example-function:latest
Function is deployed as Knative Service:
example-function
Function is deployed in namespace:
default
Routes:
http://example-function.default.apps.ci-ln-g9f36hb-d5d6b.origin-ci-int-aws.dev.rhcloud.com
----