Upgrade
Upgrade minor and patch versions of Gloo Mesh (Gloo Platform APIs).
You can use this guide to upgrade the Gloo version of your Gloo components, such as the management server and agents, or to apply changes to the components’ configuration settings.
Make sure that you review the breaking changes 🔥 that were introduced in this release and the impact that they have on your current environment. Then, continue with your upgrade.
Considerations
Consider the following rules before you plan your Gloo Mesh (Gloo Platform APIs) upgrade.
Testing upgrades
During the upgrade, the data plane continues to run, but you might not be able to modify the configurations through the management plane. Because zero downtime is not guaranteed, try testing the upgrade in a staging environment before upgrading your production environment.
Patch and minor versions
Patch version upgrades:You can skip patch versions within the same minor release. For example, you can upgrade from version 2.8.0 to 2.8.2 directly, and skip the patch versions in between.
Minor version upgrades:
- Always upgrade to the latest patch version of the target minor release. For example, if you want to upgrade from version 2.7.7 to 2.8.x, and 2.8.4 is the latest patch version, upgrade to that version and skip any previous patch versions for that minor release.
- Do not skip minor versions during your upgrade. Upgrade minor release versions one at a time. For example, if you want to upgrade from 2.8.x to 2.10.x, you must first upgrade to the latest patch version of the 2.8 minor release. After you upgrade to 2.9.x, you can then plan your upgrade to the latest patch version of the 2.10.x release.
Multicluster only: Version skew policy for management and remote clusters
Plan to always upgrade your Gloo management server and agents to the same target version. Always upgrade the Gloo management server first. Then, roll out the upgrade to the Gloo agents in your workload clusters. During this upgrade process, your management server and agents can be one minor version apart.
For example, let’s say you want to upgrade from 2.7.7 to 2.8.x. Start by upgrading your management server to the latest patch version of the 2.8 minor release. Your management server and agent are still compliant as they are one minor version apart. Then, roll out the 2.8 minor release upgrade to the agents in your workload clusters.
If you plan to upgrade more than one minor releases, you must perform one minor release upgrade at a time. For example, to upgrade your management server and agent from 2.8.x to 2.10.x, you upgrade your management server to the latest patch version of the 2.9 minor release first. Your management server and agent are compliant because they are one minor version apart. Then, you upgrade your agents to the 2.9 minor release. After you verify the 2.9 upgrade, use the same approach to upgrade the management server and agents from 2.9 to the target 2.10 minor release.
If both your management server and agent run the same minor version, the agent can run any patch version that is equal or lower than the management server’s patch version.
Consider the following example version skew scenarios:
| Supported? | Management server version | Agent version | Requirement |
|---|---|---|---|
| ✅ | 2.9.3 | 2.9.1 | The management server and agents run the same minor version. The agent patch version is equal to or lower than the management server. |
| ❌ | 2.9.3 | 2.9.6 | The agent runs the same minor version as the server, but has a patch version greater than the server. |
| ✅ | 2.9.3 | 2.8.1 | The agent runs a minor version no greater than n-1 behind the server. |
| ❌ | 2.9.3 | 2.7.2 | The agent runs a minor version that is greater than n-1 behind the server. |
Step 1: Prepare to upgrade
Review changes from the previous version.
Make sure that you review the breaking changes 🔥 that were introduced in this release and the impact that they have on your current environment.Check that your underlying Kubernetes platform and Istio service mesh run supported versions for the Gloo Mesh (Gloo Platform APIs) version that you want to upgrade to.
- Review the supported versions.
- Compare the supported version against the versions of Kubernetes and Istio that you run in your clusters.
- If necessary, upgrade Istio or Kubernetes to a version that is supported by the Gloo Mesh (Gloo Platform APIs) version that you want to upgrade to.
- For managed Istio installations, see Upgrade Gloo Operator-managed service meshes, or for manually installed Istio, see Upgrade Istio service meshes with Helm.
- For Kubernetes steps, consult your cluster infrastructure provider.
Set the Gloo Mesh (Gloo Platform APIs) version that you want to upgrade to as an environment variable. The latest version is used as an example. You can find other versions in the changelog documentation. Append
-fipsfor a FIPS-compliant image, such as2.8.4-fips. Do not includevbefore the version number.export UPGRADE_VERSION=2.8.4
Step 2: Upgrade the meshctl CLI
Upgrade the meshctl CLI to the version of Gloo Mesh (Gloo Platform APIs) you want to upgrade to.
Re-install
meshctlto the upgrade version.curl -sL https://run.solo.io/meshctl/install | GLOO_MESH_VERSION=v$UPGRADE_VERSION sh -Verify that the client version matches the version you want to upgrade to.
meshctl versionExample output:
{ "client": { "version": "2.8.4" },
Step 3: Upgrade Gloo Mesh (Gloo Platform APIs)
Upgrade your Gloo Mesh (Gloo Platform APIs) installation. The steps differ based on whether you run Gloo Mesh (Gloo Platform APIs) in a single-cluster or multicluster environment.
Single cluster
Scale down the Gloo management server to 0 replicas. This step is required to safely enable safe mode and I/O threads in Redis. If you already enabled safe mode and you do not want to set I/O threads in Redis, you can skip this step.
kubectl scale deployment gloo-mesh-mgmt-server --replicas=0 -n gloo-meshUpdate the
gloo-platformHelm repo.helm repo add gloo-platform https://storage.googleapis.com/gloo-platform/helm-charts helm repo updateApply the Gloo custom resource definitions (CRDs) for the upgrade version.
helm upgrade -i gloo-platform-crds gloo-platform/gloo-platform-crds \ --namespace gloo-mesh \ --version $UPGRADE_VERSION \ --set installEnterpriseCrds=trueGet the Helm values file for your current version.
helm get values gloo-platform -o yaml -n gloo-mesh > gloo-single.yaml open gloo-single.yamlCompare your current Helm chart values with the version that you want to upgrade to. You can get a values file for the upgrade version with the
helm show valuescommand.helm show values gloo-platform/gloo-platform --version $UPGRADE_VERSION > all-values.yamlMake any changes that you want, such as modifications required for breaking changes or to enable new features, by editing your
gloo-single.yamlHelm values file or preparing the--setflags. For example, enabling the Gloo insights engine by including the--set glooInsightsEngine.enabled=trueand--set glooAnalyzer.enabled=truesettings is recommended to help you improve the security and observability of your environment. If you do not want to use certain settings, comment them out.Upgrade the Gloo Mesh (Gloo Platform APIs) Helm installation.
Make sure to include your Helm values when you upgrade either as a configuration file in the
–valuesflag or with–setflags. Otherwise, any previous custom values that you set might be overwritten.helm upgrade gloo-platform gloo-platform/gloo-platform \ --namespace gloo-mesh \ -f gloo-single.yaml \ --version $UPGRADE_VERSIONConfirm that Gloo components, such as the
gloo-mesh-mgmt-server, run the version that you upgraded to.meshctl versionExample output:
"server": [ { "Namespace": "gloo-mesh", "components": [ { "componentName": "gloo-mesh-mgmt-server", "images": [ { "name": "gloo-mesh-mgmt-server", "domain": "gcr.io", "path": "gloo-mesh-mgmt-server", "version": "2.8.4" } ] },If you previously scaled down the Gloo management server, scale it back to the number of replicas that you had before. The following example uses 1 replica.
kubectl scale deployment gloo-mesh-mgmt-server --replicas=1 -n gloo-meshWait until all Gloo agents are connected to the Gloo management server.
meshctl check
Multicluster
Scale down the Gloo management server to 0 replicas. This step is required to safely enable safe mode and I/O threads in Redis. If you already enabled safe mode and you do not want to set I/O threads in Redis, you can skip this step.
kubectl scale deployment gloo-mesh-mgmt-server --context $MGMT_CONTEXT --replicas=0 -n gloo-meshUpdate the
gloo-platformHelm repo.helm repo add gloo-platform https://storage.googleapis.com/gloo-platform/helm-charts helm repo updateGet the Helm values files for your current version.
- Get your current values for the management cluster.
helm get values gloo-platform -n gloo-mesh -o yaml --kube-context $MGMT_CONTEXT > mgmt-plane.yaml open mgmt-plane.yaml - Get your current values for the workload clusters.
helm get values gloo-platform -n gloo-mesh -o yaml --kube-context $REMOTE_CONTEXT > data-plane.yaml open data-plane.yaml - Optional: If you maintain a separate
gloo-agent-addonsHelm release, get the values for that Helm release too. Note that your add-ons might be installed in a different namespace, such asgloo-mesh-addons.helm get values gloo-agent-addons -n gloo-mesh -o yaml --kube-context $REMOTE_CONTEXT > gloo-agent-addons.yaml open gloo-agent-addons.yaml
- Get your current values for the management cluster.
Compare your current Helm chart values with the version that you want to upgrade to. You can get a values file for the upgrade version with the
helm show valuescommand.helm show values gloo-platform/gloo-platform --version $UPGRADE_VERSION > all-values.yamlMake any changes that you want, such as modifications required for breaking changes or to enable new features, by editing your
mgmt-plane.yamlanddata-plane.yamlHelm values files or preparing the--setflags. For example, enabling the Gloo insights engine by including the--set glooInsightsEngine.enabled=truesetting is recommended to help you improve the security and observability of your environment. If you do not want to use certain settings, comment them out.Upgrade the Gloo Mesh (Gloo Platform APIs) Helm release in your management cluster.
You must always upgrade the Gloo management plane before upgrading the Gloo data plane to avoid unexpected behavior. Note that only
n-1minor version skew is supported between the Gloo management server and the agent. For more information, see the skew policy.- Apply the Gloo custom resource definitions (CRDs) for the upgrade version in the management cluster.
helm upgrade -i gloo-platform-crds gloo-platform/gloo-platform-crds \ --kube-context $MGMT_CONTEXT \ --namespace gloo-mesh \ --version $UPGRADE_VERSION \ --set installEnterpriseCrds=true - Upgrade your Helm release in the management cluster. Make sure to include your Helm values when you upgrade either as a configuration file in the
--valuesflag or with--setflags. Otherwise, any previous custom values that you set might be overwritten.helm upgrade gloo-platform gloo-platform/gloo-platform \ --kube-context $MGMT_CONTEXT \ --namespace gloo-mesh \ -f mgmt-plane.yaml \ --version $UPGRADE_VERSION - Confirm that the management plane components, such as the
gloo-mesh-mgmt-server, run the version that you upgraded to.Example output:meshctl version --kubecontext $MGMT_CONTEXT"server": [ { "Namespace": "gloo-mesh", "components": [ { "componentName": "gloo-mesh-mgmt-server", "images": [ { "name": "gloo-mesh-mgmt-server", "domain": "gcr.io", "path": "gloo-mesh-mgmt-server", "version": "2.8.4" } ] },
- Apply the Gloo custom resource definitions (CRDs) for the upgrade version in the management cluster.
If you previously scaled down the Gloo management server, scale it back to the number of replicas that you had before. The following example uses 1 replica.
kubectl scale deployment gloo-mesh-mgmt-server --context $MGMT_CONTEXT --replicas=1 -n gloo-meshWait until all Gloo agents are connected to the Gloo management server.
meshctl check --kubecontext $REMOTE_CONTEXTOpen the Gloo UI and verify that none of your clusters are currently in safe mode. If a cluster is in safe more, the agent’s input snapshot is not yet populated in Redis. You see a yellow banner in the Gloo UI indicating the cluster that triggered safe mode. Wait until the input snapshot is populated and the yellow banner does not display in the Gloo UI anymore.
If a cluster remains in safe mode for a long time, review the logs of the agent by using thekubectl logs <agent-pod> -n gloo-mesh --context $REMOTE_CONTEXTcommand. To learn more about possible reasons for why the cluster remains in safe mode, see Indefinite safe mode.meshctl dashboard --kubecontext $MGMT_CONTEXTUpgrade the Gloo Mesh (Gloo Platform APIs) Helm releases in your workload clusters. Repeat these steps for each workload cluster, and be sure to update the cluster context each time.
Apply the Gloo custom resource definitions (CRDs) for the upgrade version in each workload cluster.
helm upgrade -i gloo-platform-crds gloo-platform/gloo-platform-crds \ --kube-context $REMOTE_CONTEXT \ --namespace=gloo-mesh \ --version=$UPGRADE_VERSION \ --set installEnterpriseCrds=trueUpgrade your Helm release in each workload cluster. Make sure to include your Helm values when you upgrade either as a configuration file in the
--valuesflag or with--setflags. For example, enabling the Gloo insights analyzer by including the--set glooAnalyzer.enabled=truesetting is recommended to help you improve the security and observability of your environment. Otherwise, any previous custom values that you set might be overwritten.helm upgrade gloo-platform gloo-platform/gloo-platform \ --kube-context $REMOTE_CONTEXT \ --namespace gloo-mesh \ -f data-plane.yaml \ --version $UPGRADE_VERSIONOptional: If you maintain a separate
gloo-agent-addonsHelm release, upgrade that Helm release in each workload cluster too. Be sure to update the cluster context for each workload cluster that you repeat this command for. Note that your add-ons might be installed in a different namespace, such asgloo-mesh-addons.helm upgrade gloo-agent-addons gloo-platform/gloo-platform \ --kube-context $REMOTE_CONTEXT \ --namespace gloo-mesh \ -f gloo-agent-addons.yaml \ --version $UPGRADE_VERSIONEnsure that the Gloo agent connects to the Gloo management server.
meshctl check --kubecontext $REMOTE_CONTEXTOpen the Gloo UI and verify that none of your clusters are currently in safe mode. If a cluster is in safe more, the agent’s input snapshot is not yet populated in Redis. You see a yellow banner in the Gloo UI indicating the cluster that triggered safe mode. Wait until the input snapshot is populated and the yellow banner does not display in the Gloo UI anymore.
If a cluster remains in safe mode for a long time, review the logs of the agent by using thekubectl logs <agent-pod> -n gloo-mesh --context $REMOTE_CONTEXTcommand. To learn more about possible reasons for why the cluster remains in safe mode, see Indefinite safe mode.meshctl dashboard --kubecontext $MGMT_CONTEXTConfirm that the data plane components, such as the
gloo-mesh-agent, run the version that you upgraded to.meshctl version --kubecontext $REMOTE_CONTEXTExample output:
{ "componentName": "gloo-mesh-agent", "images": [ { "name": "gloo-mesh-agent", "domain": "gcr.io", "path": "gloo-mesh/gloo-mesh-agent", "version": "2.8.4" } ] },Repeat these steps for each workload cluster, and be sure to update the cluster context each time.
Update your Gloo license
Before your Gloo license expires, you can update the license by patching the license key secret. If you use Gloo Mesh along with other Gloo products such as Gloo Mesh Gateway, you can also update those licenses.
For example, if you notice that your Gloo management plane deployments are in a crash loop, your Gloo license might be expired. You can check the status of your license with the meshctl license check command.
- To pass in a license key directly, encode the key in base64 and pass it in the
--keyflag. For example, to check your Gloo Mesh license key, you can run the following command:meshctl license check --key $(echo ${GLOO_MESH_LICENSE_KEY} | base64 -w0) --context ${MGMT_CONTEXT} - If you store your license keys in a Kubernetes secret, you can pass the secret YAML file in the
--secrets-fileflag instead.meshctl license check --secrets-file license-keys.yaml --context ${MGMT_CONTEXT}
Example output for an expired license:
WARNING Your gloo-mesh license expired on 2024-01-24 19:30:53 +0100 CET. To get a new license, contact Support.
ERROR License is expired. For more info, see https://docs.solo.io/gloo-mesh-enterprise/latest/setup/prepare/licensing/#update-licenses
To update your license key in your Gloo installation:
Get a new Gloo license key by contacting your account representative. If you use Gloo Mesh along with other Gloo products such as Gloo Mesh Gateway, make sure to ask for up-to-date license keys for all your products.
Save the new license key as an environment variable.
- Gloo Mesh (Gloo Platform APIs):
export GLOO_MESH_LICENSE_KEY=<new-key-string> - Gloo Mesh Gateway:
export GLOO_MESH_GATEWAY_LICENSE_KEY=<new-key-string>
- Gloo Mesh (Gloo Platform APIs):
Update your license in your Gloo installation. The method depends on how you provided your license during your Helm installation.
Optional: If your license expired and the management server pods are in a crash loop, restart the management server pods. If you updated the license before expiration, skip this step.
kubectl rollout restart -n gloo-mesh deployment/gloo-mesh-mgmt-server --context ${MGMT_CONTEXT}Verify that your license check is now valid, and no errors are reported.
- To pass in a license key directly, encode the key in base64 and pass it in the
--keyflag. For example, to check your Gloo Mesh license key, you can run the following command:meshctl license check --key $(echo ${GLOO_MESH_LICENSE_KEY} | base64 -w0) --context ${MGMT_CONTEXT} - If you store your license keys in a Kubernetes secret, you can pass the secret YAML file in the
--secrets-fileflag instead.meshctl license check --secrets-file license-keys.yaml --context ${MGMT_CONTEXT}
Example output:
INFO License key gloo-mesh-license-key for product gloo-mesh is valid. Expires at 08 Oct 24 12:31 CEST SUCCESS Licenses are valid- To pass in a license key directly, encode the key in base64 and pass it in the
Upgrade managed Istio within your gloo-platform Helm chart (legacy)
The steps in this section upgrade Istio installations that are managed by the istioInstallations section of your Gloo Platform Helm chart.
- If you directly created
IstioLifecycleManagerandGatewayLifecycleManagerCRs to manage the Istio control planes and gateways instead of using the Helm chart option, follow the Upgrade Gloo Mesh-managed Istio guide instead. - The Istio lifecycle manager, provided either by the
istioInstallationssection of the Helm chart or by custom resources, is considered legacy in versions 2.7 and 2.8 and is deprecated in version 2.9. Support for the feature will end in version 2.11. Consider trying out the Gloo Operator, which provides an updated, smoother management experience for service meshes.
If you manage Istio installations within the istioInstallations section your Gloo Platform Helm chart, you can apply updates to your Istio installations in one of the following ways:
- In-place upgrade
- Revisioned canary upgrade
- Testing only: Manually replacing the IstioLifecycleManager CR
In-place upgrades
- In the Solo distribution of Istio 1.25 and later, you can access enterprise-level features by passing your Solo license in the
license.valueorlicense.secretReffield of the Solo distribution of the istiod Helm chart. The Solo istiod Helm chart is strongly recommended due to the included safeguards, default settings, and upgrade handling to ensure a reliable and secure Istio deployment. Though it is not recommended, you can pass your license key in the open source istiod Helm chart by using the--set pilot.env.SOLO_LICENSE_KEYfield. - Istio patch versions 1.25.1 and 1.24.4 contain an upstream certificate rotation bug in which requests with more than one trusted root certificate cannot be validated. If you use Gloo Mesh (Gloo Platform APIs) to manage root certificate rotation and use Istio 1.25 or 1.24, be sure to use 1.25.2 or 1.24.5 and later only.
- Istio 1.22 is supported only as patch version
1.22.1-patch0and later. Do not use patch versions 1.22.0 and 1.22.1, which contain bugs that impact several Gloo Mesh (Gloo Platform APIs) routing features that rely on virtual destinations. Additionally, in Istio 1.22.0-1.22.3, theISTIO_DELTA_XDSenvironment variable must be set tofalse. For more information, see this upstream Istio issue. Note that this issue is resolved in Istio 1.22.4. - If you have multiple external services that use the same host and plan to use Istio 1.22, you must use patch version 1.22.1-patch0 or later to ensure that the Istio service entry that is created for those external services is correct.
- Due to a lack of support for the Istio CNI and iptables for the Istio proxy, you cannot run Istio (and therefore Gloo Mesh (Gloo Platform APIs)) on AWS Fargate. For more information, see the Amazon EKS issue.
In an in-place upgrade, Gloo upgrades your existing control plane or gateway installations. Note that in production environments, canary upgrades are recommended for updating the minor version. However, you might want to use in-place upgrades for patch versions or changes within the same minor version. Be sure to test in-place upgrades in development or staging environments first.
In-place upgrades behave differently based on whether your installation is revisionless or revisioned.
Revisionless installations (testing only): If your testing-only installation is revisionless (your settings omit the revision and gatewayRevision fields), in-place upgrades are triggered when you apply changes to any field in the istioInstallations section.
Revisioned installations: If your installation is revisioned, in-place upgrades are triggered only when you apply changes to one of the following fields in the istioInstallations section. Otherwise, a canary upgrade is required. You can change this behavior by setting the skipUpgradeValidation boolean value to true for the Istio installation.
istioOperatorSpec.tagpatch version- In-place upgrades are not supported for downgrading the patch version.
- In-place upgrades are not supported if you do not already specify a
tagvalue, such as if you want to switch from theautosetting to a specific version. This is because you must also specifyhubandrevisionvalues, which require a canary upgrade.
istioOperatorSpec.meshConfigvalues
To trigger an in-place upgrade:
Follow the steps in this guide to perform a regular upgrade of your Gloo Mesh installation and include your Istio changes in your Helm values file. For example, in a single-cluster setup, you might edit your Helm values file to update the patch version of Istio in the
istioInstallations.controlPlane.installations.istioOperatorSpec.tagandistioInstallations.northSouthGateways.installations.istioOperatorSpec.tagfields. After you apply the updates in your Helm upgrade of thegloo-platformchart, Gloo starts an in-place upgrade of the Istio control plane and gateways.Verify that your Istio resources are updated.
kubectl get all -n gm-iop-1-25 --context $REMOTE_CONTEXT1 kubectl get all -n istio-system --context $REMOTE_CONTEXT1 kubectl get all -n gloo-mesh-gateways --context $REMOTE_CONTEXT1
Revisioned canary upgrades
- In the Solo distribution of Istio 1.25 and later, you can access enterprise-level features by passing your Solo license in the
license.valueorlicense.secretReffield of the Solo distribution of the istiod Helm chart. The Solo istiod Helm chart is strongly recommended due to the included safeguards, default settings, and upgrade handling to ensure a reliable and secure Istio deployment. Though it is not recommended, you can pass your license key in the open source istiod Helm chart by using the--set pilot.env.SOLO_LICENSE_KEYfield. - Istio patch versions 1.25.1 and 1.24.4 contain an upstream certificate rotation bug in which requests with more than one trusted root certificate cannot be validated. If you use Gloo Mesh (Gloo Platform APIs) to manage root certificate rotation and use Istio 1.25 or 1.24, be sure to use 1.25.2 or 1.24.5 and later only.
- Istio 1.22 is supported only as patch version
1.22.1-patch0and later. Do not use patch versions 1.22.0 and 1.22.1, which contain bugs that impact several Gloo Mesh (Gloo Platform APIs) routing features that rely on virtual destinations. Additionally, in Istio 1.22.0-1.22.3, theISTIO_DELTA_XDSenvironment variable must be set tofalse. For more information, see this upstream Istio issue. Note that this issue is resolved in Istio 1.22.4. - If you have multiple external services that use the same host and plan to use Istio 1.22, you must use patch version 1.22.1-patch0 or later to ensure that the Istio service entry that is created for those external services is correct.
- Due to a lack of support for the Istio CNI and iptables for the Istio proxy, you cannot run Istio (and therefore Gloo Mesh (Gloo Platform APIs)) on AWS Fargate. For more information, see the Amazon EKS issue.
In a canary upgrade, you install another Istio installation (canary) alongside your active installation. Each installation is revisioned so that you can easily identify and verify the separate settings and resources for each installation. Note that during a canary upgrade, the validating admissions webhook is enabled only for the canary installation to prevent issues that occur when multiple webhooks are enabled.
Perform a canary upgrade when you change one of the following fields:
istioOperatorSpec.tagminor versionistioOperatorSpec.hubrepository, such as switching to the repository for the minor version of the Solo distribution of Istio that you want to upgrade tocomponents,profile,values, ornamespacein theistioOperatorSpec
To perform a canary upgrade:
OpenShift only: Elevate the permissions of the service account that will be created for the new revision’s operator project. This permission allows the Istio sidecar to make use of a user ID that is normally restricted by OpenShift. Replace the revision with the revision you plan to use.
oc adm policy add-scc-to-group anyuid system:serviceaccounts:gm-iop-1-25 --context $REMOTE_CONTEXT1 oc adm policy add-scc-to-group anyuid system:serviceaccounts:gm-iop-1-25 --context $REMOTE_CONTEXT2Follow the steps in this guide to perform a regular upgrade of your Gloo Mesh installation. When you edit the
istioInstallations.controlPlaneandistioInstallations.eastWestGatewayssections of your Helm values file, add another installation entry for the canary revision, and leave the entry your current installation as-is. For the canary revision, be sure to setdefaultRevisionandactiveGatewaytofalseso that only the existing revisions continue to run.For example, you might add the following installation entries for the Istio control plane and east-west gateway alongside your existing entries. If you have a Gloo Mesh Gateway license, you might also have entries for the ingress gateway proxy in thenothSouthGatewayssection too.istioInstallations: controlPlane: enabled: true installations: # EXISTING revision - clusters: - defaultRevision: true # Keep this field set to TRUE name: cluster1 trustDomain: "" istioOperatorSpec: hub: $REPO tag: 1.24.5-solo profile: minimal namespace: istio-system components: pilot: k8s: env: - name: SOLO_LICENSE_KEY value: "$GLOO_MESH_LICENSE_KEY" ... revision: 1-24 # NEW revision - clusters: - defaultRevision: false # Set this field to FALSE name: cluster1 trustDomain: "" istioOperatorSpec: hub: $REPO tag: 1.25.2-solo profile: minimal namespace: istio-system ... revision: 1-25 eastWestGateways: - enabled: true installations: # EXISTING revision - clusters: - activeGateway: true # Keep this field set to TRUE name: cluster1 name: trustDomain: "" gatewayRevision: 1-24 istioOperatorSpec: hub: $REPO tag: 1.24.5-solo profile: empty namespace: gloo-mesh-gateways ... # NEW revision - clusters: - defaultRevision: false # Set this field to FALSE name: cluster1 name: trustDomain: "" gatewayRevision: 1-25 istioOperatorSpec: hub: $REPO tag: 1.25.2-solo profile: empty namespace: gloo-mesh-gateways ... name: istio-eastwestgateway enabled: true- Updating the minor version of Istio? In your canary revision section, be sure to update both the repo key in the
hubfield, and the Istio version in thetagfield. You can get the repo key for the Istio version that you want to install from the Istio images built by Solo.io support article. - For most use cases, you can set the
revisionand thegatewayRevisionto the same version. However, gateway installations can point to anyistiodcontrol plane revision by using thecontrolPlaneRevisionfield. For simplicity, if you do not specifycontrolPlaneRevision, the gateway installation uses a control plane with the same revision as itself.
- Updating the minor version of Istio? In your canary revision section, be sure to update both the repo key in the
After you apply the Helm upgrade with your updated values file, verify that Istio resources for the canary installation are created. For example, if you updated the Istio minor version to
1-25, verify that resources are created in thegm-iop-1-25namespace, and that resources for1-25are created alongside the existing resources for the previous version in theistio-systemandgloo-mesh-gatewaysnamespaces. Note that the gateway load balancers for the canary revision contain the revision in the name, such asistio-eastwestgateway-1-25.kubectl get all -n gm-iop-1-25 --context $REMOTE_CONTEXT kubectl get all -n istio-system --context $REMOTE_CONTEXT kubectl get all -n gloo-mesh-gateways --context $REMOTE_CONTEXTAfter performing any necessary testing, switch to the new Istio control plane and gateway revisions.
- Get your Helm values file. Change the release name as needed.
helm get values gloo-platform -n gloo-mesh -o yaml > mgmt-plane.yaml open mgmt-plane.yaml - Change
defaultRevisionandactiveGatewaytofalsefor the old revision and totruefor the new revision.- New load balancers are created for the canary gateways. To instead change the control plane revision in use by the existing gateway load balancers, you can set the
istio.io/revlabel on the gateway deployment, which triggers a rolling restart.
istioInstallations: controlPlane: enabled: true installations: # EXISTING revision - clusters: - defaultRevision: false # Set this field to FALSE name: cluster1 trustDomain: "" istioOperatorSpec: hub: $REPO tag: 1.24.5-solo profile: minimal namespace: istio-system components: pilot: k8s: env: - name: SOLO_LICENSE_KEY value: "$GLOO_MESH_LICENSE_KEY" ... revision: 1-24 # NEW revision - clusters: - defaultRevision: true # Set this field to TRUE name: cluster1 trustDomain: "" istioOperatorSpec: hub: $REPO tag: 1.25.2-solo profile: minimal namespace: istio-system ... revision: 1-25 eastWestGateways: - enabled: true installations: # EXISTING revision - clusters: - activeGateway: false # Set this field set to FALSE name: cluster1 name: trustDomain: "" gatewayRevision: 1-24 istioOperatorSpec: hub: $REPO tag: 1.24.5-solo profile: empty namespace: gloo-mesh-gateways ... # NEW revision - clusters: - defaultRevision: true # Set this field to TRUE name: cluster1 name: trustDomain: "" gatewayRevision: 1-25 istioOperatorSpec: hub: $REPO tag: 1.25.2-solo profile: empty namespace: gloo-mesh-gateways ... name: istio-eastwestgateway enabled: true - New load balancers are created for the canary gateways. To instead change the control plane revision in use by the existing gateway load balancers, you can set the
- Upgrade your Helm release. Change the release name as needed.
helm upgrade gloo-platform gloo-platform/gloo-platform \ --namespace gloo-mesh \ -f mgmt-plane.yaml \ --version $UPGRADE_VERSION
- Get your Helm values file. Change the release name as needed.
After your Helm upgrade completes, verify that the active gateways for the new revision are created, which do not have the revision appended to the name. Note that gateways for the inactive revision that you previously ran also exist in the namespace, in the case that a rollback is required.
kubectl get all -n gloo-mesh-gatewaysExample output, in which the active gateway (
istio-eastwestgateway) for the new revision and inactive gateway (such asistio-eastwestgateway-1-24) for the old revision are created:NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) istio-eastwestgateway LoadBalancer 10.44.4.140 34.150.235.221 15021:31321/TCP,80:32525/TCP,443:31826/TCP 48s AGE istio-eastwestgateway-1-24 LoadBalancer 10.56.15.36 34.145.163.61 15021:31936/TCP,80:30196/TCP,443:32286/TCP,15443:31851/TCP 45sUpgrade your apps’ Istio sidecars.
- For any namespace where you run Istio-managed apps, change the label to use the new revision. For example, you might update the
bookinfonamespace for the canary revision1-25. If you did not previously use revision labels for your apps, you can upgrade your application’s sidecars by runningkubectl label ns bookinfo istio-injection-andkubectl label ns bookinfo istio.io/rev=<revision>.- Single cluster setup:
kubectl label ns bookinfo --overwrite istio.io/rev=1-25 - Multicluster setup:
kubectl label ns bookinfo --overwrite istio.io/rev=1-25 --context $REMOTE_CONTEXT1 kubectl label ns bookinfo --overwrite istio.io/rev=1-25 --context $REMOTE_CONTEXT2
- Single cluster setup:
- Update any Istio-managed apps by rolling out restarts. The Istio sidecars for each microservice are updated to use the new Istio version. Make sure that you only restart one microservice at a time. For example, in the following commands to update the Bookinfo microservices, 20 seconds elapse between each restart to ensure that the pods have time to start running.
- Single cluster setup:
kubectl rollout restart deployment -n bookinfo details-v1 sleep 20s kubectl rollout restart deployment -n bookinfo productpage-v1 sleep 20s kubectl rollout restart deployment -n bookinfo reviews-v1 sleep 20s kubectl rollout restart deployment -n bookinfo reviews-v2 sleep 20s kubectl rollout restart deployment -n bookinfo reviews-v3 sleep 20s kubectl rollout restart deployment -n bookinfo ratings-v1 sleep 20s - Multicluster setup:
kubectl rollout restart deployment -n bookinfo details-v1 --context $REMOTE_CONTEXT1 sleep 20s kubectl rollout restart deployment -n bookinfo ratings-v1 --context $REMOTE_CONTEXT1 sleep 20s kubectl rollout restart deployment -n bookinfo productpage-v1 --context $REMOTE_CONTEXT1 sleep 20s kubectl rollout restart deployment -n bookinfo reviews-v1 --context $REMOTE_CONTEXT1 sleep 20s kubectl rollout restart deployment -n bookinfo reviews-v2 --context $REMOTE_CONTEXT1 sleep 20s kubectl rollout restart deployment -n bookinfo reviews-v3 --context $REMOTE_CONTEXT2 sleep 20s kubectl rollout restart deployment -n bookinfo ratings-v1 --context $REMOTE_CONTEXT2 sleep 20s
- Single cluster setup:
- Verify that your workloads and new gateways point to the new revision.
- Single cluster setup:
istioctl proxy-status - Multicluster setup:
istioctl proxy-status --context $REMOTE_CONTEXT1
NAME CLUSTER ... ISTIOD VERSION details-v1-7b6df9d8c8-s6kg5.bookinfo cluster1 ... istiod-1-25-7c8f6fd4c4-m9k9t 1.25.2-solo istio-eastwestgateway-1-25-bdc4fd65f-ftmz9.gloo-mesh-gateways cluster1 ... istiod-1-25-6495985689-rkwwd 1.25.2-solo productpage-v1-bb494b7d7-xbtxr.bookinfo cluster1 ... istiod-1-25-7c8f6fd4c4-m9k9t 1.25.2-solo ratings-v1-55b478cfb6-wv2m5.bookinfo cluster1 ... istiod-1-25-7c8f6fd4c4-m9k9t 1.25.2-solo reviews-v1-6dfcc9fc7d-7k6qh.bookinfo cluster1 ... istiod-1-25-7c8f6fd4c4-m9k9t 1.25.2-solo reviews-v2-7dddd799b5-m5n2z.bookinfo cluster1 ... istiod-1-25-7c8f6fd4c4-m9k9t 1.25.2-solo - Single cluster setup:
- For any namespace where you run Istio-managed apps, change the label to use the new revision. For example, you might update the
To uninstall the previous installations, or if you need to uninstall the canary installations, you can edit your Helm values file to remove the revision entries from the
istioInstallations.controlPlane.installationsandistioInstallations.northSouthGateways.installationslists. Then, upgrade your Gloo Mesh Helm release with your updated values file.
Testing only: Manually replacing the lifecycle manager CRs
- In the Solo distribution of Istio 1.25 and later, you can access enterprise-level features by passing your Solo license in the
license.valueorlicense.secretReffield of the Solo distribution of the istiod Helm chart. The Solo istiod Helm chart is strongly recommended due to the included safeguards, default settings, and upgrade handling to ensure a reliable and secure Istio deployment. Though it is not recommended, you can pass your license key in the open source istiod Helm chart by using the--set pilot.env.SOLO_LICENSE_KEYfield. - Istio patch versions 1.25.1 and 1.24.4 contain an upstream certificate rotation bug in which requests with more than one trusted root certificate cannot be validated. If you use Gloo Mesh (Gloo Platform APIs) to manage root certificate rotation and use Istio 1.25 or 1.24, be sure to use 1.25.2 or 1.24.5 and later only.
- Istio 1.22 is supported only as patch version
1.22.1-patch0and later. Do not use patch versions 1.22.0 and 1.22.1, which contain bugs that impact several Gloo Mesh (Gloo Platform APIs) routing features that rely on virtual destinations. Additionally, in Istio 1.22.0-1.22.3, theISTIO_DELTA_XDSenvironment variable must be set tofalse. For more information, see this upstream Istio issue. Note that this issue is resolved in Istio 1.22.4. - If you have multiple external services that use the same host and plan to use Istio 1.22, you must use patch version 1.22.1-patch0 or later to ensure that the Istio service entry that is created for those external services is correct.
- Due to a lack of support for the Istio CNI and iptables for the Istio proxy, you cannot run Istio (and therefore Gloo Mesh (Gloo Platform APIs)) on AWS Fargate. For more information, see the Amazon EKS issue.
If you manage Istio through your main Gloo Platform Helm chart in testing or demo setups, you can quickly upgrade your Istio service mesh and gateway configurations by manually deleting the IstioLifecycleManager and GatewayLifecycleManager CRs, and upgrading your Gloo Mesh installation with your updated gateway values in your Helm values file. Note that you can also use this method to clear your managed Istio configurations if a canary upgrade becomes stuck.
This method is supported only for testing scenarios, because your istiod control plane and gateways are temporarily removed in this process.
Get the name of your
IstioLifecycleManagerresource. Typically, this resource is namedgloo-platform.kubectl get IstioLifecycleManager -A --context $MGMT_CONTEXTDelete the resource.
kubectl delete IstioLifecycleManager gloo-platform -n gloo-mesh --context $MGMT_CONTEXTVerify that your
istiodcontrol plane is removed.kubectl get all -n istio-system --context $REMOTE_CONTEXT1 kubectl get all -n istio-system --context $REMOTE_CONTEXT2Optional: If you also need to make changes to your gateways, clear those configurations.
- Get the name of your
GatewayLifecycleManagerresource. Typically, this resource is namedistio-eastwestgateway. You might also have anistio-ingressgatewayresource, such as if you use Gloo Mesh Gateway.kubectl get GatewayLifecycleManager -A --context $MGMT_CONTEXT - Delete the resource.
kubectl delete GatewayLifecycleManager istio-eastwestgateway -n gloo-mesh --context $MGMT_CONTEXTkubectl delete GatewayLifecycleManager istio-ingressgateway -n gloo-mesh --context $MGMT_CONTEXT - Verify that your gateway proxy is removed.
kubectl get svc -n gloo-mesh-gateways --context $REMOTE_CONTEXT1 kubectl get svc -n gloo-mesh-gateways --context $REMOTE_CONTEXT2
- Get the name of your
Follow the steps in this guide to perform a regular upgrade of your Gloo Mesh installation and include your Istio changes in your Helm values file. After you apply the updates in your Helm upgrade of the
gloo-platformchart, Gloo re-creates theistiodcontrol plane, and if applicable, the Istio gateways.After your Helm upgrade completes, verify that your Istio resources are re-created.
# Change the revision as needed kubectl get all -n gm-iop-1-25 --context $REMOTE_CONTEXT1 kubectl get all -n istio-system --context $REMOTE_CONTEXT1 kubectl get all -n gloo-mesh-gateways --context $REMOTE_CONTEXT1# Change the revision as needed kubectl get all -n gm-iop-1-25 --context $REMOTE_CONTEXT2 kubectl get all -n istio-system --context $REMOTE_CONTEXT2 kubectl get all -n gloo-mesh-gateways --context $REMOTE_CONTEXT2