mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
50 lines
1.6 KiB
Plaintext
50 lines
1.6 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * /serverless/knative-serving/config-ha-services/ha-replicas-serving.adoc
|
|
// * /serverless/eventing/tuning/serverless-ha.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="serverless-config-replicas-serving_{context}"]
|
|
= Configuring high availability replicas for Knative Serving
|
|
|
|
To specify three minimum replicas for the eligible deployment resources, set the value of the field `spec.high-availability.replicas` in the custom resource to `3`.
|
|
|
|
.Prerequisites
|
|
|
|
ifdef::openshift-enterprise[]
|
|
* You have access to an {product-title} account with cluster administrator access.
|
|
endif::[]
|
|
|
|
ifdef::openshift-dedicated,openshift-rosa[]
|
|
* You have access to an {product-title} account with cluster administrator or dedicated administrator access.
|
|
endif::[]
|
|
|
|
* The {ServerlessOperatorName} and Knative Serving are installed on your cluster.
|
|
|
|
.Procedure
|
|
|
|
. In the {product-title} web console *Administrator* perspective, navigate to *OperatorHub* -> *Installed Operators*.
|
|
|
|
. Select the `knative-serving` namespace.
|
|
+
|
|
. Click *Knative Serving* in the list of *Provided APIs* for the {ServerlessOperatorName} to go to the *Knative Serving* tab.
|
|
|
|
. Click *knative-serving*, then go to the *YAML* tab in the *knative-serving* page.
|
|
+
|
|
image::serving-YAML-HA.png[Knative Serving YAML]
|
|
|
|
. Modify the number of replicas in the `KnativeServing` CR:
|
|
+
|
|
.Example YAML
|
|
[source,yaml]
|
|
----
|
|
apiVersion: operator.knative.dev/v1beta1
|
|
kind: KnativeServing
|
|
metadata:
|
|
name: knative-serving
|
|
namespace: knative-serving
|
|
spec:
|
|
high-availability:
|
|
replicas: 3
|
|
----
|