You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Configuring high availability replicas for Knative Eventing
8
8
9
-
You can scale Knative Eventing components by modifying the `spec.high-availability.replicas` value in the `KnativeEventing` custom resource (CR).
9
+
High availability (HA) is available by default for the Knative Eventing `eventing-controller`, `eventing-webhook`, `imc-controller`, `imc-dispatcher`, `mt-broker-controller`, and `sugar-controller` components, which are configured to have two replicas each by default. You can change the number of replicas for these components by modifying the `spec.high-availability.replicas` value in the `KnativeEventing` custom resource (CR).
10
+
11
+
[NOTE]
12
+
====
13
+
For Knative Eventing, the `mt-broker-filter` and `mt-broker-ingress` deployments are not scaled by HA. If multiple deployments are needed, scale these components manually.
14
+
====
10
15
11
16
.Prerequisites
12
17
@@ -44,10 +49,5 @@ metadata:
44
49
namespace: knative-eventing
45
50
spec:
46
51
high-availability:
47
-
replicas: 3 <1>
52
+
replicas: 3
48
53
----
49
-
<1> Sets the number of replicas to `3`.
50
-
+
51
-
* The `replicas` value sets the replica count for all HA controllers.
52
-
* The default `replicas` value is `2`.
53
-
* You can increase the number of replicas by changing the value to `3` or more.
Copy file name to clipboardExpand all lines: modules/serverless-config-replicas-kafka.adoc
+2-7Lines changed: 2 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
[id="serverless-config-replicas-kafka_{context}"]
7
7
= Configuring high availability replicas for Knative Kafka
8
8
9
-
You can scale Knative Kafka components by modifying the `spec.high-availability.replicas` value in the `KnativeKafka` custom resource (CR).
9
+
High availability (HA) is available by default for the Knative Kafka`kafka-controller` and `kafka-webhook-eventing` components, which are configured to have two each replicas by default. You can change the number of replicas for these components by modifying the `spec.high-availability.replicas` value in the `KnativeKafka` custom resource (CR).
10
10
11
11
.Prerequisites
12
12
@@ -44,10 +44,5 @@ metadata:
44
44
namespace: knative-eventing
45
45
spec:
46
46
high-availability:
47
-
replicas: 3 <1>
47
+
replicas: 3
48
48
----
49
-
<1> Sets the number of replicas to `3`.
50
-
+
51
-
* The `replicas` value sets the replica count for all HA controllers.
52
-
* The default `replicas` value is `2`.
53
-
* You can increase the number of replicas by changing the value to `3` or more.
= Configuring high availability replicas for Knative Serving
8
8
9
-
You can scale Knative Serving components by modifying the `spec.high-availability.replicas` value in the `KnativeServing` custom resource (CR).
9
+
High availability (HA) is available by default for the Knative Serving`activator`, `autoscaler`, `autoscaler-hpa`, `controller`, `webhook`, `kourier-control`, and `kourier-gateway` components, which are configured to have two replicas each by default. You can change the number of replicas for these components by modifying the `spec.high-availability.replicas` value in the `KnativeServing` custom resource (CR).
10
10
11
11
.Prerequisites
12
12
@@ -44,10 +44,5 @@ metadata:
44
44
namespace: knative-serving
45
45
spec:
46
46
high-availability:
47
-
replicas: 3 <1>
47
+
replicas: 3
48
48
----
49
-
<1> Sets the number of replicas to `3`.
50
-
+
51
-
* The `replicas` value sets the replica count for all HA controllers.
52
-
* The default `replicas` value is `2`.
53
-
* You can increase the number of replicas by changing the value to `3` or more.
@@ -11,21 +11,6 @@ High availability (HA) is a standard feature of Kubernetes APIs that helps to en
11
11
HA in {ServerlessProductName} is available through leader election, which is enabled by default after the Knative Serving or Eventing control plane is installed. When using a leader election HA pattern, instances of controllers are already scheduled and running inside the cluster before they are required.
12
12
These controller instances compete to use a shared resource, known as the leader election lock. The instance of the controller that has access to the leader election lock resource at any given time is called the leader.
13
13
14
-
[id="serverless-ha-configuring-replicas"]
15
-
== Configuring high availability replicas on {ServerlessProductName}
16
-
17
-
High availability (HA) functionality is available by default on {ServerlessProductName} for Knative Serving, Knative Eventing, and Knative Kafka. These are the components scaled for each of them:
These components are configured with two replicas by default.
24
-
25
-
For Knative Eventing, the `mt-broker-filter` and `mt-broker-ingress` deployments are not scaled by HA. If multiple deployments are needed, scale these components manually.
26
-
27
-
You modify the number of replicas that are created per component by changing the configuration of `spec.high-availability.replicas` in the KnativeServing custom resource (CR), the KnativeEventing CR, or the KnativeKafka CR.
0 commit comments