Skip to content

Commit f4cbfdd

Browse files
committed
Document overriding HPA per component
1 parent 5323620 commit f4cbfdd

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

modules/serverless-config-replicas-eventing.adoc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,43 @@ spec:
4545
high-availability:
4646
replicas: 3
4747
----
48+
49+
. You can also specify the number of replicas for a specific workload.
50+
+
51+
[NOTE]
52+
====
53+
Workload-specific configuration overrides the global setting for Knative Eventing.
54+
====
55+
+
56+
.Example YAML
57+
[source,yaml]
58+
----
59+
apiVersion: operator.knative.dev/v1beta1
60+
kind: KnativeEventing
61+
metadata:
62+
name: knative-eventing
63+
namespace: knative-eventing
64+
spec:
65+
high-availability:
66+
replicas: 3
67+
workloads:
68+
- name: mt-broker-filter
69+
replicas: 3
70+
----
71+
72+
. Verify that the high availability limits are respected:
73+
+
74+
.Example command
75+
[source,terminal]
76+
----
77+
$ oc get hpa -n knative-eventing
78+
----
79+
+
80+
.Example output
81+
[source,terminal]
82+
----
83+
NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
84+
broker-filter-hpa Deployment/mt-broker-filter 1%/70% 3 12 3 112s
85+
broker-ingress-hpa Deployment/mt-broker-ingress 1%/70% 3 12 3 112s
86+
eventing-webhook Deployment/eventing-webhook 4%/100% 3 7 3 115s
87+
----

modules/serverless-config-replicas-serving.adoc

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,42 @@ spec:
4141
high-availability:
4242
replicas: 3
4343
----
44+
45+
. You can also specify the number of replicas for a specific workload.
46+
+
47+
[NOTE]
48+
====
49+
Workload-specific configuration overrides the global setting for Knative Serving.
50+
====
51+
+
52+
.Example YAML
53+
[source,yaml]
54+
----
55+
apiVersion: operator.knative.dev/v1beta1
56+
kind: KnativeServing
57+
metadata:
58+
name: knative-serving
59+
namespace: knative-serving
60+
spec:
61+
high-availability:
62+
replicas: 3
63+
workloads:
64+
- name: webhook
65+
replicas: 4
66+
----
67+
68+
. Verify that the high availability limits are respected:
69+
+
70+
.Example command
71+
[source,terminal]
72+
----
73+
$ oc get hpa -n knative-serving
74+
----
75+
+
76+
.Example output
77+
[source,terminal]
78+
----
79+
NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
80+
activator Deployment/activator 0%/100% 3 22 3 2m24s
81+
webhook Deployment/webhook 2%/100% 4 8 4 2m23s
82+
----

0 commit comments

Comments
 (0)