Skip to content

Commit 60ee8c8

Browse files
committed
OSSM-4815: updated files
1 parent 55317bd commit 60ee8c8

File tree

2 files changed

+47
-39
lines changed

2 files changed

+47
-39
lines changed

modules/ossm-configuring-istio-ha-autoscaling.adoc

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,48 +17,52 @@ Configure the {istio} control plane in High Availability (HA) mode to prevent a
1717
1818
.Procedure
1919

20-
. Modify the {istio} custom resource by defining the autoscaleMin and autoscaleMax parameters.
20+
. Obtain the name of the {istio} resource by running the following command:
2121
+
22-
.Example configuration
23-
[source,yaml,subs="attributes,verbatim"]
22+
[source,terminal]
2423
----
25-
apiVersion: sailoperator.io/v1
26-
kind: Istio
27-
metadata:
28-
name: default
29-
spec:
30-
namespace: istio-system
31-
values:
32-
pilot:
33-
autoscaleMin: 2 # <1>
34-
autoscaleMax: 5 # <2>
24+
$ oc get istio -n istio-system
3525
----
36-
<1> Defines the minimum number of {istio} control plane replicas that always run.
37-
<2> Defines the maximum number of {istio} control plane replicas, allowing for scaling based on load. To support HA, there must be at least two replicas.
26+
+
27+
.Example output
28+
[source,terminal]
29+
----
30+
NAME REVISIONS READY IN USE ACTIVE REVISION STATUS VERSION AGE
31+
default 1 1 0 default Healthy v1.24.6 24m
32+
----
33+
+
34+
The name of the {istio} resource is `default`.
3835

39-
. Apply the configuration changes by running the following command:
36+
. Update the {istio} custom resource by adding the `autoscaleMin` and `autoscaleMax` parameters by running the following command:
4037
+
4138
[source,terminal]
4239
----
43-
$ oc apply -f <filename>.yaml
40+
$ oc patch istio default -n istio-system --type merge -p '
41+
spec:
42+
values:
43+
pilot:
44+
autoscaleMin: 2 <1>
45+
autoscaleMax: 5 <2>
46+
'
4447
----
48+
<1> Defines the minimum number of {istio} control plane replicas that always run.
49+
<2> Defines the maximum number of {istio} control plane replicas, allowing for scaling based on load. To support HA, there must be at least two replicas.
4550

4651
.Verification
4752

48-
Verify the status of the {Istio} control pods by running the following command:
53+
. Verify the status of the {Istio} control pods by running the following command:
4954
+
5055
[source,terminal]
5156
----
5257
$ oc get pods -n istio-system -l app=istiod
5358
----
5459
+
5560
.Example output
56-
+
5761
[source,terminal]
5862
----
5963
NAME READY STATUS RESTARTS AGE
6064
istiod-7c7b6564c9-nwhsg 1/1 Running 0 70s
6165
istiod-7c7b6564c9-xkmsl 1/1 Running 0 85s
6266
----
6367
+
64-
Two `istiod` pods are running, which indicates HA was successfully configured.
68+
Two `istiod` pods are running, which indicates HA was successfully configured.

modules/ossm-configuring-istio-ha-replicacount.adoc

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,43 +17,47 @@ Configure the {istio} control plane in High Availability (HA) mode to prevent a
1717
1818
.Procedure
1919

20-
. Modify the {istio} custom resource by defining the autoscaleMin and autoscaleMax parameters.
20+
. Obtain the name of the {istio} resource by running the following command:
2121
+
22-
.Example configuration
23-
[source,yaml,subs="attributes,verbatim"]
22+
[source,terminal]
2423
----
25-
apiVersion: sailoperator.io/v1
26-
kind: Istio
27-
metadata:
28-
name: default
29-
spec:
30-
namespace: istio-system
31-
values:
32-
pilot:
33-
autoscaleEnabled: false # <1>
34-
replicaCount: 2 # <2>
24+
$ oc get istio -n istio-sytem
3525
----
36-
<1> Disables autoscaling and ensures that the number of replicas remains fixed.
37-
<2> Defines the number of {istio} control plane replicas. To support HA, there must be at least two replicas.
26+
+
27+
.Example output
28+
[source,terminal]
29+
----
30+
NAME REVISIONS READY IN USE ACTIVE REVISION STATUS VERSION AGE
31+
default 1 1 0 default Healthy v1.24.6 24m
32+
----
33+
+
34+
The name of the {istio} resource is `default`.
3835

39-
. Apply the configuration changes by running the following command:
36+
. Update the {istio} custom resource by adding the `autoscaleEnabled` and `replicaCount` parameters by running the following command:
4037
+
4138
[source,terminal]
4239
----
43-
$ oc apply -f <filename>.yaml
40+
$ oc patch istio default -n istio-system --type merge -p '
41+
spec:
42+
values:
43+
pilot:
44+
autoscaleEnabled: false <1>
45+
replicaCount: 2 <2>
46+
'
4447
----
48+
<1> Disables autoscaling and ensures that the number of replicas remains fixed.
49+
<2> Defines the number of {istio} control plane replicas. To support HA, there must be at least two replicas.
4550

4651
.Verification
4752

48-
Verify the status of the {Istio} control pods by running the following command:
53+
. Verify the status of the {Istio} control pods by running the following command:
4954
+
5055
[source,terminal]
5156
----
5257
$ oc get pods -n istio-system -l app=istiod
5358
----
5459
+
5560
.Example output
56-
+
5761
[source,terminal]
5862
----
5963
NAME READY STATUS RESTARTS AGE

0 commit comments

Comments
 (0)