Skip to content

Commit 329fa95

Browse files
authored
Merge pull request #93404 from shreyasiddhartha/OSSM-9339
OSSM-9339 Document Istio-CNI Update Process
2 parents 8dd700b + a944d18 commit 329fa95

File tree

3 files changed

+57
-1
lines changed

3 files changed

+57
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Module included in the following assemblies:
2+
3+
// update/ossm-updating-openshift-service-mesh.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="ossm-about-istio-cni-update-process_{context}"]
7+
= About the Istio CNI update process
8+
9+
The {istio} Container Network Interface (CNI) update process uses in-place updates. When the `IstioCNI` resource changes, the daemonset automatically replaces the existing `istio-cni-node` pods with the specified version of the CNI plugin.
10+
11+
You can use the following field to manage version updates:
12+
13+
`spec.version`:: defines the CNI plugin version to install. Specify the value in the format `vX.Y.Z`, where `X.Y.Z` represents the desired version. For example, use `v1.24.4` to install the CNI plugin version `1.24.4`.
14+
15+
To update the CNI plugin, modify the `spec.version` field with the target version. The `IstioCNI` resource also includes a `values` field that exposes configuration options from the `istio-cni` chart.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// Module included in the following assemblies:
2+
3+
// update/ossm-updating-openshift-service-mesh.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="ossm-updating-istio-cni-resource-version_{context}"]
7+
= Updating the Istio CNI resource version
8+
9+
You can update the Istio CNI resource version by changing the version in the resource. Then, the {SMProductShortName} Operator deploys a new version of the CNI plugin that replaces the old version of the CNI plugin. The `istio-cni-node` pods automatically reconnect to the new CNI plugin.
10+
11+
.Prerequisites
12+
13+
* You are logged in to {ocp-product-title} as a user with the `cluster-admin` role.
14+
* You installed the {SMProductName} Operator and deployed {istio}.
15+
* You installed the {istio} CNI plugin with the desired version. In the following example, the `IstioCNI` resource named `default` is deployed in the `istio-cni` namespace.
16+
17+
.Procedure
18+
19+
. Change the version in the `{istio}` resource. For example, to update to {istio} `1.24.4`, set the `spec.version` field to `v1.24.4` by running the following command:
20+
+
21+
[source,terminal]
22+
----
23+
$ oc patch istiocni default -n istio-cni --type='merge' -p '{"spec":{"version":"v1.24.4"}}'
24+
----
25+
26+
. Confirm that the new version of the CNI plugin is ready by running the following command:
27+
+
28+
[source,terminal]
29+
----
30+
$ oc get istiocni default
31+
----
32+
+
33+
.Example Output
34+
+
35+
[source,terminal]
36+
----
37+
NAME READY STATUS VERSION AGE
38+
default True Healthy v1.24.4 91m
39+
----

update/ossm-updating-openshift-service-mesh.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ include::modules/ossm-selecting-revisionbased-strategy.adoc[leveloffset=+2]
3030
include::modules/ossm-installing-istio-with-revisionbased-strategy.adoc[leveloffset=+2]
3131
include::modules/ossm-updating-istio-control-plane-with-revisionbased.adoc[leveloffset=+2]
3232
include::modules/ossm-installing-istio-with-revisionbased-strategy-istiorevisiontag.adoc[leveloffset=+2]
33-
include::modules/ossm-updating-istio-control-plane-with-revisionbased-istiorevisiontag.adoc[leveloffset=+2]
33+
include::modules/ossm-updating-istio-control-plane-with-revisionbased-istiorevisiontag.adoc[leveloffset=+2]
34+
include::modules/ossm-about-istio-cni-update-process.adoc[leveloffset=+1]
35+
include::modules/ossm-updating-istio-cni-resource-version.adoc[leveloffset=+2]

0 commit comments

Comments
 (0)