Skip to content

Commit e52af7c

Browse files
authored
Merge pull request #46936 from abrennan89/SRVKS-937
[SRVKS-937] Updating system deployment override configs
2 parents d227ee2 + a8678b8 commit e52af7c

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

modules/knative-serving-CR-system-deployments.adoc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
[id="knative-serving-CR-system-deployments_{context}"]
77
= Overriding system deployment configurations
88

9-
You can override the default configurations for some specific deployments by modifying the `deployments` spec in the `KnativeServing` custom resource (CR). Currently, overriding default configuration settings is supported for the `replicas`, `labels`, `annotations`, and `nodeSelector` fields.
9+
You can override the default configurations for some specific deployments by modifying the `deployments` spec in the `KnativeServing` custom resource (CR). Currently, overriding default configuration settings is supported for the `resources`, `replicas`, `labels`, `annotations`, and `nodeSelector` fields.
1010

1111
In the following example, a `KnativeServing` CR overrides the `webhook` deployment so that:
1212

13+
* The deployment has specified CPU and memory resource limits.
1314
* The deployment has 3 replicas.
14-
* The label is set to `example-label: label`.
15-
* The label `example-label: label` is added.
15+
* The `example-label: label` label is added.
16+
* The `example-annotation: annotation` annotation is added.
1617
* The `nodeSelector` field is set to select nodes with the `disktype: hdd` label.
1718
1819
[NOTE]
@@ -33,6 +34,14 @@ spec:
3334
replicas: 2
3435
deployments:
3536
- name: webhook
37+
resources:
38+
- container: webhook
39+
requests:
40+
cpu: 300m
41+
memory: 60Mi
42+
limits:
43+
cpu: 1000m
44+
memory: 1000Mi
3645
replicas: 3
3746
labels:
3847
example-label: label

0 commit comments

Comments
 (0)