Skip to content

Commit a33680e

Browse files
authored
Merge pull request #42764 from abrennan89/SRVKS-852
SRVKS-852: Add additional knative serving admin config docs
2 parents a8a2596 + 912a985 commit a33680e

File tree

5 files changed

+72
-2
lines changed

5 files changed

+72
-2
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Module included in the following assemblies
2+
//
3+
// * serverless/admin_guide/knative-serving-CR-config.adoc
4+
5+
:_content-type: REFERENCE
6+
[id="serverless-kourier-gateway-service-type_{context}"]
7+
= Setting the Kourier Gateway service type
8+
9+
The default service type by which the Kourier Gateway is exposed is `ClusterIP`, and is determined by the `service-type` ingress spec in the `KnativeServing` custom resource (CR):
10+
11+
.Default spec
12+
[source,yaml]
13+
----
14+
...
15+
spec:
16+
ingress:
17+
kourier:
18+
service-type: ClusterIP
19+
...
20+
----
21+
22+
You can override the default service type to use a load balancer service type instead by modifying the `service-type` spec:
23+
24+
.LoadBalancer override spec
25+
[source,yaml]
26+
----
27+
...
28+
spec:
29+
ingress:
30+
kourier:
31+
service-type: LoadBalancer
32+
...
33+
----

modules/serverless-rn-1-21-0.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* {ServerlessProductName} now uses Knative Kafka 0.27.
1919
* The `kn func` CLI plug-in now uses `func` 0.21.
2020
// check versions
21+
* The Knative open source project has begun to deprecate camel-cased configuration keys in favor of using kebab-cased keys consistently. As a result, the `defaultExternalScheme` key, previously mentioned in the {ServerlessProductName} 1.18.0 release notes, has been deprecated and replaced by the `default-external-scheme` key. Usage instructions for the key remain the same.
2122

2223
[id="fixed-issues-1-21-0_{context}"]
2324
== Fixed issues
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Module included in the following assemblies
2+
//
3+
// * serverless/admin_guide/knative-serving-CR-config.adoc
4+
5+
:_content-type: REFERENCE
6+
[id="serverless-url-scheme-external-routes_{context}"]
7+
= Setting the URL scheme for external routes
8+
9+
The URL scheme of external routes defaults to HTTPS for enhanced security. This scheme is determined by the `default-external-scheme` key in the `KnativeServing` custom resource (CR) spec:
10+
11+
.Default spec
12+
[source,yaml]
13+
----
14+
...
15+
spec:
16+
config:
17+
network:
18+
default-external-scheme: "https"
19+
...
20+
----
21+
22+
You can override the default spec to use HTTP by modifying the `default-external-scheme` key:
23+
24+
.HTTP override spec
25+
[source,yaml]
26+
----
27+
...
28+
spec:
29+
config:
30+
network:
31+
default-external-scheme: "http"
32+
...
33+
----

serverless/admin_guide/knative-serving-CR-config.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ endif::[]
1818
// config options
1919
include::modules/knative-serving-CR-system-deployments.adoc[leveloffset=+1]
2020
include::modules/serverless-config-emptydir.adoc[leveloffset=+1]
21-
2221
// global https redirect
2322
include::modules/serverless-https-redirect-global.adoc[leveloffset=+1]
23+
// URL scheme for external routes
24+
include::modules/serverless-url-scheme-external-routes.adoc[leveloffset=+1]
25+
// Kourier Gateway service type
26+
include::modules/serverless-kourier-gateway-service-type.adoc[leveloffset=+1]
2427

2528
ifdef::openshift-enterprise[]
2629
[id="additional-resources_knative-serving-CR-config"]

serverless/serverless-release-notes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ endif::[]
3232

3333
// Release notes included, most to least recent
3434
// OCP + OSD
35-
include::modules/serverless-rn-1-20-0.adoc[leveloffset=+1]
3635
// include::modules/serverless-rn-1-21-0.adoc[leveloffset=+1]
36+
include::modules/serverless-rn-1-20-0.adoc[leveloffset=+1]
3737

3838
// OCP only
3939
ifdef::openshift-enterprise[]

0 commit comments

Comments
 (0)