Skip to content

Commit 1a6f68c

Browse files
authored
Merge pull request #35924 from abrennan89/SRVCOM-1373
SRVCOM-1373: Add CR sections for serverless components
2 parents 3575d05 + fa30807 commit 1a6f68c

File tree

4 files changed

+79
-0
lines changed

4 files changed

+79
-0
lines changed

_topic_map.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3062,9 +3062,15 @@ Topics:
30623062
# Eventing
30633063
- Name: Creating Knative Eventing components in the Administrator perspective
30643064
File: serverless-cluster-admin-eventing
3065+
# - Name: Configuring the Knative Eventing custom resource
3066+
# File: knative-eventing-CR-config
3067+
# Uncomment once we add some configs to this section, adding now for consistency with Serving docs as a placeholder
30653068
# Serving
30663069
- Name: Creating Knative Serving components in the Administrator perspective
30673070
File: serverless-cluster-admin-serving
3071+
# - Name: Configuring the Knative Serving custom resource
3072+
# File: knative-serving-CR-config
3073+
# Uncomment at 1.18.0 release
30683074
# Monitoring
30693075
- Name: Monitoring serverless components
30703076
File: serverless-admin-monitoring
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[id="knative-serving-CR-system-deployments_{context}"]
2+
= Overriding system deployment configurations
3+
4+
You can override the default configurations for some specific deployments by modifying the `deployments` spec in the `KnativeServing` custom resource (CR).
5+
6+
Currently, overriding default configuration settings for the `replicas`, `labels`, `annotations`, and `nodeSelector` fields are supported.
7+
8+
In the following example, a `KnativeServing` CR overrides the `webhook` deployment so that:
9+
10+
* The deployment has 3 replicas.
11+
* The label is set to `example-label: label`.
12+
* The label `example-label: label` is added.
13+
* The `nodeSelector` field is set to select nodes with the `disktype: hdd` label.
14+
15+
[NOTE]
16+
====
17+
The `KnativeServing` CR label and annotation settings override the deployment's labels and annotations for both the deployment itself and the resulting pods.
18+
====
19+
20+
.KnativeServing CR example
21+
[source,yaml]
22+
----
23+
apiVersion: operator.knative.dev/v1alpha1
24+
kind: KnativeServing
25+
metadata:
26+
name: ks
27+
namespace: knative-serving
28+
spec:
29+
high-availability:
30+
replicas: 2
31+
deployments:
32+
- name: webhook
33+
replicas: 3
34+
labels:
35+
example-label: label
36+
annotations:
37+
example-annotation: annotation
38+
nodeSelector:
39+
disktype: hdd
40+
----
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
include::modules/common-attributes.adoc[]
2+
include::modules/serverless-document-attributes.adoc[]
3+
[id="knative-eventing-CR-config"]
4+
= Configuring the Knative Eventing custom resource
5+
:context: knative-eventing-CR-config
6+
7+
toc::[]
8+
9+
This guide describes how cluster administrators can manage settings for developer-created custom resources (CRs) that are created from the Knative Eventing CR.
10+
11+
// config options
12+
13+
[id="additional-resources_knative-eventing-CR-config"]
14+
== Additional resources
15+
16+
* See xref:../../operators/understanding/crds/crd-managing-resources-from-crds.adoc[Managing resources from custom resource definitions].
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
include::modules/common-attributes.adoc[]
2+
include::modules/serverless-document-attributes.adoc[]
3+
[id="knative-serving-CR-config"]
4+
= Configuring the Knative Serving custom resource
5+
:context: knative-serving-CR-config
6+
7+
toc::[]
8+
9+
This guide describes how cluster administrators can manage settings for developer-created custom resources (CRs) that are created from the Knative Serving CR.
10+
11+
// config options
12+
include::modules/knative-serving-CR-system-deployments.adoc[leveloffset=+1]
13+
14+
[id="additional-resources_knative-serving-CR-config"]
15+
== Additional resources
16+
17+
* See xref:../../operators/understanding/crds/crd-managing-resources-from-crds.adoc[Managing resources from custom resource definitions].

0 commit comments

Comments
 (0)