From b587db1990ac032fcd6664bc6c814f759c0ade8a Mon Sep 17 00:00:00 2001 From: Francisco H Date: Tue, 25 Feb 2025 09:58:52 +0000 Subject: [PATCH] Update IstioCNI resource doc extended Signed-off-by: Francisco H Add link to doc and fix typo Signed-off-by: Francisco H --- docs/README.md | 51 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index b6a31086e..009a904b6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -8,6 +8,7 @@ - [IstioRevision resource](#istiorevision-resource) - [IstioRevisionTag resource](#istiorevisiontag-resource) - [IstioCNI resource](#istiocni-resource) + - [Updating the IstioCNI resource](#updating-the-istiocni-resource) - [Resource Status](#resource-status) - [InUse Detection](#inuse-detection) - [API Reference documentation](#api-reference-documentation) @@ -120,7 +121,7 @@ spec: As you can see in the YAML above, `IstioRevisionTag` really only has one field in its spec: `targetRef`. With this field, you can reference an `Istio` or `IstioRevision` resource. So after deploying this, you will be able to use both the `istio.io/rev=default` and also `istio-injection=enabled` labels to inject proxies into your workloads. The `istio-injection` label can only be used for revisions and revision tags named `default`, like the `IstioRevisionTag` in the above example. ### IstioCNI resource -The lifecycle of Istio's CNI plugin is managed separately when using Sail Operator. To install it, you can create an `IstioCNI` resource. The `IstioCNI` resource is a cluster-wide resource as it will install a `DaemonSet` that will be operating on all nodes of your cluster. You can select a version by setting the `spec.version` field, as you can see in the sample below. To update the CNI plugin, just change the `version` field to the version you want to install. Just like the `Istio` resource, it also has a `values` field that exposes all of the options provided in the `istio-cni` chart: +The lifecycle of Istio's CNI plugin is managed separately when using Sail Operator. To install it, you can create an `IstioCNI` resource. The `IstioCNI` resource is a cluster-wide resource as it will install a `DaemonSet` that will be operating on all nodes of your cluster. You can select a version by setting the `spec.version` field, as you can see in the sample below: ```yaml apiVersion: sailoperator.io/v1 @@ -137,6 +138,54 @@ spec: - kube-system ``` +#### Updating the IstioCNI resource +Updates for the `IstioCNI` resource are `Inplace` updates, this means that the `DaemonSet` will be updated with the new version of the CNI plugin once the resource is updated and the `istio-cni-node` pods are going to be replaced with the new version. +To update the CNI plugin, just change the `version` field to the version you want to install. Just like the `Istio` resource, it also has a `values` field that exposes all of the options provided in the `istio-cni` chart: + +1. Create the `IstioCNI` resource. + + ```bash + cat < [!NOTE] > The CNI plugin at version `1.x` is compatible with `Istio` at version `1.x-1`, `1.x` and `1.x+1`.