|
| 1 | +// Module is included in the following assemblies: |
| 2 | +// |
| 3 | +// serverless/serverless-ha.adoc |
| 4 | + |
| 5 | +[id="serverless-config-replicas-eventing_{context}"] |
| 6 | += Configuring high availability replicas for Eventing |
| 7 | + |
| 8 | +You can scale Knative Eventing components by modifying the `spec.high-availability.replicas` value in the KnativeEventing custom resource. |
| 9 | + |
| 10 | +.Prerequisites |
| 11 | +* You have access to an {product-title} cluster with cluster administrator permissions. |
| 12 | +* The {ServerlessOperatorName} and Knative Eventing are installed on your cluster. |
| 13 | + |
| 14 | +.Procedure |
| 15 | + |
| 16 | +. In the {product-title} web console *Administrator* perspective, navigate to *OperatorHub* -> *Installed Operators*. |
| 17 | ++ |
| 18 | +image::serving-installed-operator.png[Installed Operators page] |
| 19 | ++ |
| 20 | +. Select the `knative-eventing` namespace. |
| 21 | ++ |
| 22 | +. Click *Knative Eventing* in the list of *Provided APIs* for the {ServerlessOperatorName} to go to the *Knative Eventing* tab. |
| 23 | ++ |
| 24 | +image::eventing-tab-created.png[Knative Eventing tab] |
| 25 | ++ |
| 26 | +. Click *knative-eventing*, then go to the *YAML* tab in the *knative-eventing* page. |
| 27 | ++ |
| 28 | +image::eventing-YAML-HA.png[Knative Eventing YAML] |
| 29 | ++ |
| 30 | +. Modify the number of replicas in the `KnativeEventing` CRD: |
| 31 | ++ |
| 32 | +.Example YAML |
| 33 | +[source,yaml] |
| 34 | +---- |
| 35 | +apiVersion: operator.knative.dev/v1alpha1 |
| 36 | +kind: KnativeEventing |
| 37 | +metadata: |
| 38 | + name: knative-eventing |
| 39 | + namespace: knative-eventing |
| 40 | +spec: |
| 41 | + high-availability: |
| 42 | + replicas: 3 <1> |
| 43 | +---- |
| 44 | +<1> Sets the number of replicas to `3`. |
| 45 | ++ |
| 46 | +[IMPORTANT] |
| 47 | +==== |
| 48 | +Do not modify any YAML contained inside the `config` field. Some of the configuration values in this field are injected by the {ServerlessOperatorName}, and modifying them will cause your deployment to become unsupported. |
| 49 | +==== |
| 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. |
0 commit comments