You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Knative CLI (kn) for use with OpenShift Serverless
3
+
= Knative CLI (kn) for use with {ServerlessProductName}
4
4
:context: kn-cli-tools
5
5
include::modules/common-attributes.adoc[]
6
6
7
7
toc::[]
8
8
9
9
The Knative `kn` CLI enables simple interaction with Knative components on {product-title}.
10
10
11
-
You can enable Knative on {product-title} by installing {ServerlessProductName}. For more information, see xref:../serverless/serverless-getting-started.adoc#serverless-getting-started[Getting started with {ServerlessProductName}].
12
-
13
-
[NOTE]
14
-
====
15
-
{ServerlessProductName} cannot be installed using the `kn` CLI. A cluster administrator must install the {ServerlessOperatorName} and set up the Knative components, as described in the xref:../serverless/install/install-serverless-operator.adoc#install-serverless-operator[Serverless applications] documentation for {product-title}.
Using Jaeger with xref:../../serverless/serverless-getting-started.adoc#serverless-getting-started[{ServerlessProductName}] allows you to enable distributed tracing for your serverless applications on {product-title}.
9
+
Using Jaeger with xref:../../serverless/discover/about-serverless.adoc#about-serverless[{ServerlessProductName}] allows you to enable distributed tracing for your serverless applications on {product-title}.
The Knative CLI (`kn`) does not have its own login mechanism. To log in to the cluster, you must install the `oc` CLI and use the `oc login` command.
9
+
Installation options for the `oc` CLI may vary depending on your operating system.
10
10
11
-
Installation options for the `oc` CLI will vary depending on your operating system.
11
+
The Knative CLI (`kn`) does not have its own login mechanism. To log in to the cluster, you must install the `oc` CLI and use the `oc login` command.
12
12
13
13
For more information on installing the `oc` CLI for your operating system and logging in with `oc`, see the xref:../../cli_reference/openshift_cli/getting-started-cli.adoc#cli-getting-started[OpenShift CLI getting started] documentation.
14
14
15
+
{ServerlessProductName} cannot be installed using the `kn` CLI. A cluster administrator must install the {ServerlessOperatorName} and set up the Knative components, as described in the xref:../../serverless/install/install-serverless-operator.adoc#install-serverless-operator[Installing the {ServerlessOperatorName}] documentation.
16
+
15
17
[IMPORTANT]
16
18
====
17
19
If you try to use an older version of the Knative `kn` CLI with a newer {ServerlessProductName} release, the API is not found and an error occurs.
To deploy a serverless application using {ServerlessProductName}, you must create a _Knative service_. Knative services are Kubernetes services, defined by a route and a configuration, and contained in a YAML file.
10
+
11
+
.Example Knative service YAML
12
+
[source,yaml]
13
+
----
14
+
apiVersion: serving.knative.dev/v1
15
+
kind: Service
16
+
metadata:
17
+
name: hello <1>
18
+
namespace: default <2>
19
+
spec:
20
+
template:
21
+
spec:
22
+
containers:
23
+
- image: docker.io/openshift/hello-openshift <3>
24
+
env:
25
+
- name: RESPONSE <4>
26
+
value: "Hello Serverless!"
27
+
----
28
+
29
+
<1> The name of the application.
30
+
<2> The namespace the application uses.
31
+
<3> The image of the application.
32
+
<4> The environment variable printed out by the sample application.
10
33
11
34
[id="serverless-applications-create"]
12
35
== Creating serverless applications
@@ -17,12 +40,6 @@ You can create a serverless application by using one of the following methods:
17
40
* Create a Knative service using the `kn` CLI.
18
41
* Create and apply a YAML file.
19
42
20
-
[id="serverless-applications-web-console"]
21
-
=== Creating serverless applications using the {product-title} web console
22
-
23
-
For more information about creating applications using the *Developer* perspective in the {product-title} web console, see the documentation on xref:../../applications/creating_applications/odc-creating-applications-using-developer-perspective.adoc#odc-creating-applications-using-developer-perspective[Creating applications using the Developer perspective].
Serverless is a cloud computing model where application developers do not need to provision servers or manage scaling for their applications. These routine tasks are abstracted away by the platform, allowing developers to push code to production more quickly than in traditional models.
10
+
11
+
{ServerlessProductName} simplifies the process of delivering code from development into production by reducing the need for infrastructure set up or back-end development by developers.
12
+
13
+
Developers on {ServerlessProductName} can use the provided Kubernetes native APIs, as well as familiar languages and frameworks, to deploy applications and container workloads.
14
+
15
+
{ServerlessProductName} is based on the open source link:https://knative.dev/docs/[Knative project], which provides portability and consistency for hybrid and multi-cloud environments by enabling an enterprise-grade serverless platform.
16
+
17
+
[id="about-serverless-supported-configs"]
18
+
== Supported configurations
19
+
20
+
The set of supported features, configurations, and integrations for {ServerlessProductName}, current and past versions, are available at the link:https://access.redhat.com/articles/4912821[Supported Configurations page].
{ServerlessProductName} simplifies the process of delivering code from development into production by reducing the need for infrastructure set up or back-end development by developers.
10
-
11
-
Serverless is a cloud computing model where application developers do not need to provision servers or manage scaling for their applications. These routine tasks are abstracted away by the platform, allowing developers to push code to production more quickly than in traditional models.
12
-
13
-
[id="serverless-getting-started-how-it-works"]
14
-
== How {ServerlessProductName} works
15
-
16
-
Developers on {ServerlessProductName} can use the provided Kubernetes native APIs, as well as familiar languages and frameworks, to deploy applications and container workloads.
17
-
18
-
{ServerlessProductName} on {product-title} enables stateless, serverless workloads to all run on a single multi-cloud container platform with automated operations. Developers can use a single platform for hosting their microservices, legacy, and serverless applications.
19
-
20
-
{ServerlessProductName} is based on the open source Knative project, which provides portability and consistency across hybrid and multi-cloud environments by enabling an enterprise-grade serverless platform.
The set of supported features, configurations, and integrations for {ServerlessProductName}, current and past versions, are available at the link:https://access.redhat.com/articles/4912821[Supported Configurations page].
For an overview of {ServerlessProductName} functionality, see xref:../serverless/serverless-getting-started.adoc#serverless-getting-started[Getting started with OpenShift Serverless].
9
+
For an overview of {ServerlessProductName} functionality, see xref:../serverless/discover/about-serverless.adoc#about-serverless[About {ServerlessProductName}].
If you have installed a previous version of {ServerlessProductName}, you can follow the instructions in this guide to update to the latest version.
10
+
11
+
[IMPORTANT]
12
+
====
13
+
If you have previously installed the community Knative Eventing Operator, you must remove this Operator before you are able to install the latest version of Knative Eventing by using the {ServerlessOperatorName}.
0 commit comments