Skip to content

Commit 9d6e9c2

Browse files
committed
SRVCOM-1664: ensure that docs have right context attribute
1 parent 98d8434 commit 9d6e9c2

24 files changed

+104
-45
lines changed
2.6 KB
Loading

modules/creating-serverless-apps-kn.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/develop/serverless-applications.adoc
4+
15
:_content-type: PROCEDURE
26
[id="creating-serverless-apps-kn_{context}"]
37
= Creating serverless applications by using the Knative CLI
48

59
The following procedure describes how you can create a basic serverless application using the `kn` CLI.
610

711
.Prerequisites
12+
813
* {ServerlessOperatorName} and Knative Serving are installed on your cluster.
914
* You have installed the `kn` CLI.
1015
@@ -19,7 +24,6 @@ $ kn service create <service-name> --image <image> --env <key=value>
1924
+
2025
.Example command
2126
[source,terminal]
22-
[source,terminal]
2327
----
2428
$ kn service create event-display \
2529
--image quay.io/openshift-knative/knative-eventing-sources-event-display:latest

modules/creating-serverless-apps-yaml.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// serverless/knative_serving/serverless-applications.adoc
3+
// * serverless/develop/serverless-applications.adoc
44

55
:_content-type: PROCEDURE
66
[id="creating-serverless-apps-yaml_{context}"]
@@ -35,5 +35,4 @@ spec:
3535
$ oc apply -f <filename>
3636
----
3737

38-
After the service is created and the application is deployed, Knative creates an immutable revision for this version of the application.
39-
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.
38+
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: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// serverless/knative_serving/serverless-applications.adoc
3+
// serverless/develop/serverless-applications.adoc
44

55
:_content-type: PROCEDURE
66
[id="interacting-serverless-apps-http2-gRPC_{context}"]
@@ -11,68 +11,59 @@
1111
Insecure or edge-terminated routes do not support HTTP2 on {product-title}.
1212
These routes also do not support gRPC because gRPC is transported by HTTP2.
1313

14-
If you use these protocols in your application, you must call the application using the ingress gateway directly.
15-
To do this you must find the ingress gateway's public address and the application's specific host.
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.
1615

17-
// FIXME: Uncomment for Serverless 1.19.0
18-
// [IMPORTANT]
19-
// ====
20-
// This method needs to expose Kourier Gateway using the `LoadBalancer` service type. You can configure this by adding the following YAML to your `KnativeServing` custom resource definition (CRD):
16+
[IMPORTANT]
17+
====
18+
This method needs to expose Kourier Gateway using the `LoadBalancer` service type. You can configure this by adding the following YAML to your `KnativeServing` custom resource definition (CRD):
2119
22-
// [source,yaml]
23-
// ----
24-
// ...
25-
// spec:
26-
// ingress:
27-
// kourier:
28-
// service-type: LoadBalancer
29-
// ...
30-
// ----
31-
// ====
20+
[source,yaml]
21+
----
22+
...
23+
spec:
24+
ingress:
25+
kourier:
26+
service-type: LoadBalancer
27+
...
28+
----
29+
====
3230

3331
.Procedure
3432

3533
. Find the application host. See the instructions in _Verifying your serverless application deployment_.
34+
3635
. Find the ingress gateway's public address:
3736
+
38-
3937
[source,terminal]
4038
----
4139
$ oc -n knative-serving-ingress get svc kourier
4240
----
43-
4441
+
4542
.Example output
4643
+
47-
4844
[source,terminal]
4945
----
5046
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
5147
kourier LoadBalancer 172.30.51.103 a83e86291bcdd11e993af02b7a65e514-33544245.us-east-1.elb.amazonaws.com 80:31380/TCP,443:31390/TCP 67m
5248
----
53-
5449
+
5550
The public address is surfaced in the `EXTERNAL-IP` field, and in this case is `a83e86291bcdd11e993af02b7a65e514-33544245.us-east-1.elb.amazonaws.com`.
5651

5752
. Manually set the host header of your HTTP request to the application's host, but direct the request itself against the public address of the ingress gateway.
5853
+
59-
6054
[source,terminal]
6155
----
6256
$ curl -H "Host: hello-default.example.com" a83e86291bcdd11e993af02b7a65e514-33544245.us-east-1.elb.amazonaws.com
6357
----
64-
6558
+
6659
.Example output
6760
[source,terminal]
6861
----
6962
Hello Serverless!
7063
----
71-
7264
+
7365
You can also make a gRPC request by setting the authority to the application's host, while directing the request against the ingress gateway directly:
7466
+
75-
7667
[source,yaml]
7768
----
7869
grpc.Dial(
@@ -81,7 +72,6 @@ grpc.Dial(
8172
grpc.WithInsecure(),
8273
)
8374
----
84-
8575
+
8676
[NOTE]
8777
====

modules/kn-service-apply.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/develop/serverless-applications.adoc
4+
// * serverless/reference/kn-serving-ref.adoc
5+
6+
:_content-type: REFERENCE
17
[id="kn-service-apply_{context}"]
28
= Applying service declarations
39

modules/kn-service-describe.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/develop/serverless-applications.adoc
4+
// * serverless/reference/kn-serving-ref.adoc
5+
6+
:_content-type: REFERENCE
17
[id="kn-service-describe_{context}"]
28
= Describing serverless applications by using the Knative CLI
39

modules/kn-service-offline-about.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
3-
// serverless/cli_reference/kn-offline-services.adoc
3+
// * serverless/cli_reference/kn-offline-services.adoc
4+
// * serverless/develop/serverless-applications.adoc
45

56
:_content-type: CONCEPT
67
[id="kn-service-offline-about_{context}"]

modules/kn-service-offline-create.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
3-
// serverless/cli_reference/kn-offline-services.adoc
3+
// * serverless/cli_reference/kn-offline-services.adoc
4+
// * serverless/develop/serverless-applications.adoc
45

56
:_content-type: PROCEDURE
67
[id="creating-an-offline-service_{context}"]

modules/kn-service-update.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/develop/serverless-applications.adoc
4+
// * serverless/reference/kn-serving-ref.adoc
5+
6+
:_content-type: REFERENCE
17
[id="kn-service-update_{context}"]
28
= Updating serverless applications by using the Knative CLI
39

modules/odc-splitting-traffic-between-revisions-using-developer-perspective.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/develop/serverless-traffic-management.adoc
4+
15
:_content-type: PROCEDURE
26
[id="odc-splitting-traffic-between-revisions-using-developer-perspective_{context}"]
37
= Managing traffic between revisions by using the {product-title} web console
@@ -6,6 +10,11 @@ After you create a serverless application, the application is displayed in the *
610

711
Any new change in the code or the service configuration creates a new revision, which is a snapshot of the code at a given time. For a service, you can manage the traffic between the revisions of the service by splitting and routing it to the different revisions as required.
812

13+
.Prerequisites
14+
15+
* The {ServerlessOperatorName} and Knative Serving are installed on your cluster.
16+
* You have logged in to the {product-title} web console.
17+
918
.Procedure
1019

1120
To split traffic between multiple revisions of an application in the *Topology* view:

0 commit comments

Comments
 (0)