Skip to content

Commit 87adf72

Browse files
committed
SRVCOM-1728: Updating serverless applications section to meet new Jupiter reqs
1 parent b1e40e1 commit 87adf72

14 files changed

+54
-67
lines changed

modules/creating-serverless-apps-kn.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[id="creating-serverless-apps-kn_{context}"]
88
= Creating serverless applications by using the Knative CLI
99

10-
The following procedure describes how you can create a basic serverless application using the `kn` CLI.
10+
Using the `kn` CLI to create serverless applications provides a more streamlined and intuitive user interface over modifying YAML files directly. You can use the `kn service create` command to create a basic serverless application using the `kn` CLI.
1111

1212
.Prerequisites
1313

modules/creating-serverless-apps-yaml.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
[id="creating-serverless-apps-yaml_{context}"]
77
= Creating serverless applications using YAML
88

9-
To create a serverless application by using YAML, you must create a YAML file that defines a `Service` object, then apply it by using `oc apply`.
9+
Creating Knative resources by using YAML files uses a declarative API, which enables you to describe applications declaratively and in a reproducible manner. To create a serverless application by using YAML, you must create a YAML file that defines a Knative `Service` object, then apply it by using `oc apply`.
10+
11+
After the service is created and the application is deployed, Knative creates an immutable revision for this version of the application. Knative also performs network programming to create a route, ingress, service, and load balancer for your application and automatically scales your pods up and down based on traffic.
1012

1113
.Prerequisites
1214

15+
* {ServerlessOperatorName} and Knative Serving are installed on your cluster.
16+
* You have created a project or have access to a project with the appropriate roles and permissions to create applications and other workloads in {product-title}.
1317
* Install the OpenShift CLI (`oc`).
1418
1519
.Procedure
@@ -38,5 +42,3 @@ spec:
3842
----
3943
$ oc apply -f <filename>
4044
----
41-
42-
After the service is created and the application is deployed, Knative creates an immutable revision for this version of the application. Knative also performs network programming to create a route, ingress, service, and load balancer for your application and automatically scales your pods up and down based on traffic, including inactive pods.

modules/interacting-serverless-apps-http2-gRPC.adoc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@
66
[id="interacting-serverless-apps-http2-gRPC_{context}"]
77
= Interacting with a serverless application using HTTP2 and gRPC
88

9-
{ServerlessProductName} supports only insecure or edge-terminated routes.
10-
11-
Insecure or edge-terminated routes do not support HTTP2 on {product-title}.
12-
These routes also do not support gRPC because gRPC is transported by HTTP2.
13-
14-
If you use these protocols in your application, you must call the application using the ingress gateway directly. To do this you must find the ingress gateway's public address and the application's specific host.
9+
{ServerlessProductName} supports only insecure or edge-terminated routes. Insecure or edge-terminated routes do not support HTTP2 on {product-title}. These routes also do not support gRPC because gRPC is transported by HTTP2. If you use these protocols in your application, you must call the application using the ingress gateway directly. To do this you must find the ingress gateway's public address and the application's specific host.
1510

1611
[IMPORTANT]
1712
====
@@ -30,7 +25,9 @@ spec:
3025

3126
.Prerequisites
3227

28+
* {ServerlessOperatorName} and Knative Serving are installed on your cluster.
3329
* Install the OpenShift CLI (`oc`).
30+
* You have created a Knative service.
3431
3532
.Procedure
3633

modules/kn-service-apply.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Module included in the following assemblies:
22
//
3-
// * serverless/develop/serverless-applications.adoc
43
// * serverless/reference/kn-serving-ref.adoc
54

65
:_content-type: REFERENCE

modules/kn-service-describe.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Module included in the following assemblies:
22
//
3-
// * serverless/develop/serverless-applications.adoc
43
// * serverless/reference/kn-serving-ref.adoc
54

65
:_content-type: REFERENCE

modules/kn-service-offline-about.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Module included in the following assemblies:
22
//
3-
// * serverless/cli_reference/kn-offline-services.adoc
4-
// * serverless/develop/serverless-applications.adoc
3+
// * serverless/reference/kn-serving-ref.adoc
54

65
:_content-type: CONCEPT
76
[id="kn-service-offline-about_{context}"]
8-
= About offline mode
7+
= About the Knative CLI offline mode
98

10-
Normally, when you execute `kn service` commands, the changes immediately propagate to the cluster. However, as an alternative, you can execute `kn service` commands in offline mode:
9+
When you execute `kn service` commands, the changes immediately propagate to the cluster. However, as an alternative, you can execute `kn service` commands in offline mode. When you create a service in offline mode, no changes happen on the cluster, and instead the service descriptor file is created on your local machine.
1110

12-
. When you create a service in offline mode, no changes happen on the cluster. Instead, the only thing that happens is the creation of the service descriptor file on your local machine.
13-
. After the descriptor file is created, you can manually modify it and track it in a version control system.
11+
:FeatureName: The offline mode of the Knative CLI
12+
include::snippets/technology-preview.adoc[leveloffset=+1]
13+
14+
After the descriptor file is created, you can manually modify it and track it in a version control system. You can also propagate changes to the cluster by using the `kn service create -f`, `kn service apply -f`, or `oc apply -f` commands on the descriptor files.
1415
// Once `update` works, add it here and make it into a list
15-
. Finally, you can propagate changes to the cluster by using the `kn service create -f`, `kn service apply -f`, or `oc apply -f` commands on the descriptor files.
1616

1717
The offline mode has several uses:
1818

modules/kn-service-offline-create.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
// Module included in the following assemblies:
22
//
3-
// * serverless/cli_reference/kn-offline-services.adoc
3+
// * serverless/reference/kn-serving-ref.adoc
44
// * serverless/develop/serverless-applications.adoc
55

66
:_content-type: PROCEDURE
77
[id="creating-an-offline-service_{context}"]
88
= Creating a service using offline mode
99

10+
You can execute `kn service` commands in offline mode, so that no changes happen on the cluster, and instead the service descriptor file is created on your local machine. After the descriptor file is created, you can modify the file before propagating changes to the cluster.
11+
12+
:FeatureName: The offline mode of the Knative CLI
13+
include::snippets/technology-preview.adoc[leveloffset=+1]
14+
1015
.Prerequisites
1116

1217
* {ServerlessOperatorName} and Knative Serving are installed on your cluster.
13-
* You have installed the `kn` CLI.
18+
* You have installed the Knative (`kn`) CLI.
1419
1520
.Procedure
1621

modules/kn-service-update.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Module included in the following assemblies:
22
//
3-
// * serverless/develop/serverless-applications.adoc
43
// * serverless/reference/kn-serving-ref.adoc
54

65
:_content-type: REFERENCE

modules/serverless-https-redirect-service.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
[id="serverless-https-redirect-service_{context}"]
77
= HTTPS redirection per service
88

9-
You can enable or disable HTTPS redirection for a service by configuring the `networking.knative.dev/httpOption` annotation, as shown in the following example:
9+
// need better details from eng team about use case to update this topic
10+
You can enable or disable HTTPS redirection for a service by configuring the `networking.knative.dev/httpOption` annotation. The following example shows how you can use this annotation in a Knative `Service` YAML object:
1011

1112
[source,yaml]
1213
----

modules/serverless-kn-container.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// Module included in the following assemblies:
22
//
3-
// * serverless/develop/serverless-applications.adoc
43
// * serverless/reference/kn-serving-ref.adoc
54

65
:_content-type: REFERENCE
76
[id="serverless-kn-container_{context}"]
87
= Knative client multi-container support
98

10-
You can use the `kn container add` command to print YAML container spec to standard output. This command is useful for multi-container use cases because it can be used along with other standard `kn` flags to create definitions. The `kn container add` command accepts all container-related flags that are supported for use with the `kn service create` command. The `kn container add` command can also be chained by using UNIX pipes (`|`) to create multiple container definitions at once.
9+
You can use the `kn container add` command to print YAML container spec to standard output. This command is useful for multi-container use cases because it can be used along with other standard `kn` flags to create definitions.
10+
11+
The `kn container add` command accepts all container-related flags that are supported for use with the `kn service create` command. The `kn container add` command can also be chained by using UNIX pipes (`|`) to create multiple container definitions at once.
1112

1213
[discrete]
1314
[id="serverless-kn-container-examples_{context}"]

0 commit comments

Comments
 (0)