Chapter 2. Before migrating


Identify the architectural and functional differences between Red Hat OpenShift Service Mesh 2.6 and Red Hat OpenShift Service Mesh 3 to prepare for the specific installation and configuration changes required for a successful migration.

If you are a current Red Hat OpenShift Service Mesh user, there are several important differences you need to understand between OpenShift Service Mesh 2 and OpenShift Service Mesh 3 before you migrate, including the following:

  • A new Operator
  • Integrations such as Observability and Kiali are installed separately
  • New resources: Istio and IstioCNI
  • Scoping of a mesh with discoverySelectors and labels
  • New considerations for sidecar injection
  • Support for multiple control planes
  • Independently managed gateways
  • Explicit Istio OpenShift route creation
  • Canary upgrades
  • Support for Istio multi-cluster topologies
  • Support for Istioctl
  • Change to Kubernetes network policy management
  • Transport layer security (TLS) configuration change
  • DNS capture configuration for ServiceEntry resources

You must be using OpenShift Service Mesh 2.6 to migrate to OpenShift Service Mesh 3.

Red Hat OpenShift Service Mesh 3 is a major update with a feature set closer to the "Istio project". Whereas OpenShift Service Mesh 2 was based on the midstream Maistra project, OpenShift Service Mesh 3 is based directly on Istio. This means OpenShift Service Mesh 3 is managed using a different, simplified Operator and provides greater support for the latest stable features of Istio.

This alignment with the Istio project along with lessons learned in the first two major releases of OpenShift Service Mesh have resulted in the following changes:

2.1.2.1. From Maistra to Istio

OpenShift Service Mesh 1 and 2 were based on Istio, and included additional functionality that was maintained as part of the midstream Maistra project, but not part of the upstream Istio project. While this provided extra features to OpenShift Service Mesh users, the effort to support Maistra meant that OpenShift Service Mesh 2 was usually several releases behind Istio, and did not support major features such as multi-cluster deployment. Since the release of OpenShift Service Mesh 1 and 2, Istio has matured to cover most of the use cases addressed by Maistra.

Basing OpenShift Service Mesh 3 directly on Istio ensures that OpenShift Service Mesh 3 supports users on the latest stable Istio features while Red Hat contributes directly to the Istio community on behalf of its customers.

2.1.2.2. OpenShift Service Mesh 3 Operator

OpenShift Service Mesh 3 uses an Operator that is maintained upstream as the Sail Operator in the istio-ecosystem organization on GitHub. The OpenShift Service Mesh 3 Operator is smaller in scope and includes significant changes from the Operator used in OpenShift Service Mesh 2:

  • The Istio resource replaces the ServiceMeshControlPlane resource.
  • The IstioCNI resource manages the Istio Container Network Interface (CNI).
  • Red Hat OpenShift Observability components are installed and configured separately.

2.1.2.3. About Operator and component versioning

All Red Hat OpenShift Service Mesh Operators use versioning and manage at least one underlying component (operand), which is often versioned independently through a custom resource definition (CRD).

In OpenShift Service Mesh 2, the ServiceMeshControlPlane resource managed many operands, including Istio, Kiali, and Jaeger. Each component maintained its own version containing the following three levels of versioning:

  • The Operator version
  • The ServiceMeshControlPlane version
  • The individual component versions

For example, the OpenShift Service Mesh 2.6 Operator managed the 2.6 version of the control plane, which included Istio 1.20, Kiali 1.73, and other component versions. Each Operator version also supported multiple control plane versions. The OpenShift Service Mesh 2.6 Operator supported versions 2.4, 2.5, and 2.6 of the control plane.

OpenShift Service Mesh 3 simplifies versioning by limiting Operator management to the Istio resource. The Istio resource is responsible only for the Istio component and does not manage Kiali or other components. So, the Istio resource specifies only the Istio component version.

Each OpenShift Service Mesh release supports the latest available Istio version for that Operator version. For example, OpenShift Service Mesh 3.0.0 supports Istio 1.24.0. While the Operator might contain other Istio versions to support upgrades, product support, including patches for Common Vulnerabilities and Exposures (CVEs), covers only the latest Istio version in a given Operator release. For each Operator release, update to the most recent Istio version available.

2.1.3. New resources in OpenShift Service Mesh 3

Red Hat OpenShift Service Mesh 3 uses the following two new resources:

  • Istio
  • IstioCNI

OpenShift Service Mesh 2 uses a resource called ServiceMeshControlPlane to configure Istio. In OpenShift Service Mesh 3, the ServiceMeshControlPlane resource is replaced with a resource called Istio.

The Istio resource contains a spec.values field that derives its schema from Istio’s Helm chart values. This means that configuration examples from the community Istio documentation can often be applied directly to the OpenShift Service Mesh 3 Istio resource.

You can view an additional validation schema of the Istio resource by running the following command:

$ oc explain istios.spec.values

2.1.3.2. About Istio control plane versioning

In OpenShift Service Mesh 2.6 and earlier, the version field in the ServiceMeshControlPlane resource specified the control plane version. The version field accepted only minor versions, such as v2.5 or v2.6. The Operator automatically applied new patch versions, such as 2.6.1, without requiring changes to the resource.

OpenShift Service Mesh 3.0 introduces the Istio resource to manage Istio control planes. This resource also includes a version field, but it uses Istio versioning instead of OpenShift Service Mesh versions. The field accepts specific patch versions, such as v1.24.1, which the Operator maintains without applying automatic updates.

To enable automatic patch updates, use a version in the format v1.24-latest. This instructs the Operator to keep the Istio control plane updated with the latest available patch release of Istio 1.24.

2.1.3.3. New resource: IstioCNI

The Istio Container Network Interface (CNI) node agent is used to configure traffic redirection for pods in the mesh. It runs as a daemon set, on every node, with elevated privileges.

In OpenShift Service Mesh 2, the Operator deployed an Istio CNI instance for each minor version of Istio present in the cluster, and pods were automatically annotated during sidecar injection so they picked up the correct Istio CNI. The Istio CNI agent has an independent lifecycle from the Istio control plane and, in some cases, you must upgrade the Istio CNI agent separately.

For these reasons, the OpenShift Service Mesh 3 Operator manages the Istio CNI node agent with a separate resource called IstioCNI. A single instance of this resource is shared by all Istio control planes, which are managed by Istio resources.

A significant change in Red Hat OpenShift Service Mesh 3 is that the Operator no longer installs and manages observability components such as Prometheus and Grafana with the Istio control plane. It also no longer installs and manages Red Hat OpenShift distributed tracing platform components such as distributed tracing platform (Tempo) and Red Hat OpenShift distributed tracing data collection (previously Jaeger and Elasticsearch), or Kiali.

The OpenShift Service Mesh 3 Operator limits its scope to Istio-related resources, with observability components supported and managed by the independent Operators that make up Red Hat OpenShift Observability, such as the following:

  • Logging
  • User workload monitoring
  • Red Hat OpenShift distributed tracing platform

Kiali and the OpenShift Service Mesh Console (OSSMC) plugin are still supported with the Kiali Operator provided by Red Hat.

This simplification greatly reduces the footprint and complexity of OpenShift Service Mesh 3, while providing better, production-grade support for observability through Red Hat OpenShift Observability components.

In OpenShift Service Mesh 2.4, a cluster-wide mode was introduced to allow a mesh to be cluster-scoped, with the option to limit the mesh by using an Istio feature called discoverySelectors.

Using discoverySelectors limits the Istio control plane’s visibility to a set of namespaces defined with a label selector. This aligned with how community Istio worked, and allowed Istio to manage cluster-level resources. For more information, see "Labels and Selectors".

OpenShift Service Mesh 3 makes all meshes cluster-wide by default. This change means that Istio control planes are all cluster-scoped resources and the resources ServiceMeshMemberRoll and ServiceMeshMember are no longer present, with control planes watching, or discovering, the entire cluster by default. The control plane’s discovery of namespaces can be limited using the discoverySelectors feature.

2.1.6. New considerations for sidecar injection

Red Hat OpenShift Service Mesh 2 supported using pod annotations and labels to configure sidecar injection and there was no need to indicate which control plane a workload belonged to.

With OpenShift Service Mesh 3, even though the Istio control plane discovers a namespace, the workloads present in that namespace still require sidecar proxies to be included as workloads in the service mesh, and to be able to use Istio’s many features.

In OpenShift Service Mesh 3, sidecar injection works the same way as it does for Istio, with pod or namespace labels used to trigger sidecar injection. However, it might be necessary to include a label that indicates which control plane the workload belongs to.

Note

The Istio Project has deprecated pod annotations in favor of labels for sidecar injection.

When an Istio resource has the name default and InPlace upgrades are used, there is a single IstioRevision with the name default and the label istio-injection=enabled for sidecar injection.

However, an IstioRevision resource is required to have a different name in the following cases:

  • Multiple control plane instances are present.
  • A RevisionBased, canary-style control plane upgrade is in progress.

If there are running multiple control plane instances, or you chose the RevisionBased update strategy during your OpenShift Service Mesh 3 installation, then an IstioRevision resource is required to have a different name than default. When that happens, it is necessary to use a label that indicates which control plane revision the workloads belong to by specifying istio.io/rev=<istiorevision_name>.

These labels can be applied at the workload or namespace level.

You can inspect available revisions by running the following command:

$ oc get istiorevision

2.1.7. Support for multiple control planes

Red Hat OpenShift Service Mesh 3 supports multiple service meshes in the same cluster, but in a different manner than in OpenShift Service Mesh 2. A cluster administrator must create multiple Istio instances and then configure discoverySelectors appropriately to ensure that there is no overlap between mesh namespaces.

As Istio resources are cluster-scoped, they must have unique names to represent unique meshes within the same cluster. The OpenShift Service Mesh 3 Operator uses this unique name to create a resource called IstioRevision with a name in the format of {Istio name} or {Istio name}-{Istio version}.

Each instance of IstioRevision is responsible for managing a single control plane. Workloads are assigned to a specific control plane by using Istio’s revision labels of the format istio.io/rev={IstioRevision name}. The name with the version identifier becomes important to support canary-style control plane upgrades.

2.1.8. Independently managed Istio gateways

In Istio, gateways are used to manage traffic entering (ingress) and exiting (egress) the mesh. Red Hat OpenShift Service Mesh 2 deployed and managed an ingress gateway and an egress gateway with the Service Mesh control plane. Both an ingress gateway and an egress gateway were configured using the ServiceMeshControlPlane resource.

The OpenShift Service Mesh 3 Operator does not create or manage gateways.

Instead, gateways in OpenShift Service Mesh 3 are created and managed independent of the Operator and control plane by using gateway injection or the Kubernetes Gateway API. This provides greater flexibility and ensures that gateways can be fully customized and managed as part of a Red Hat OpenShift GitOps pipeline. This allows the gateways to be deployed and managed alongside their applications with the same lifecycle.

This change was made for two reasons:

  • To start with a gateway configuration that can expand over time to meet the more robust needs of a production environment.
  • Gateways are better managed together with their corresponding workloads.

Gateways might continue to be deployed onto nodes or namespaces independent of applications. For example, a centralized gateway node. Istio gateways also remain eligible to be deployed on OpenShift Container Platform infrastructure nodes.

Note

If you are using OpenShift Service Mesh 2.6, and have not migrated from ServiceMeshControlPlane defined gateways to gateway injection, then you must follow the OpenShift Service Mesh 2.x gateway migration procedure before you can move to OpenShift Service Mesh 3.

2.1.9. Explicitly create OpenShift Routes

An OpenShift Route resource allows an application to be exposed with a public URL by using OpenShift Container Platform Ingress Operator for managing HAProxy based Ingress controllers.

Red Hat OpenShift Service Mesh 2 used Istio OpenShift Routing (IOR) that automatically created and managed OpenShift routes for Istio gateways. While this was convenient, as the Operator managed these routes for you, it also caused confusion around ownership as many Route resources are managed by administrators. Istio OpenShift Routing also lacked the ability to configure an independent Route resource, created unnecessary routes, and exhibited unpredictable behavior during updates.

Thus, in OpenShift Service Mesh 3, when a Route is required to expose an Istio gateway, you must create and manage it manually. You can also expose an Istio gateway through a Kubernetes service of type LoadBalancer if a route is not required.

2.1.10. Introducing canary updates

Red Hat OpenShift Service Mesh 3 addresses the risks of traditional in-place updates by providing revision-based update strategies that allow for incremental workload transitions and simplified rollbacks.

OpenShift Service Mesh 3 retains support for simple in-place style updates, and adds support for canary-style updates of the Istio control plane by using Istio’s revision feature.

The Istio resource manages Istio revision labels by using the IstioRevision resource. When the Istio resource’s updateStrategy type is set to RevisionBased, it creates Istio revision labels by using the Istio resource’s name combined with the Istio version, for example mymesh-v1-21-2.

During an updates, a new IstioRevision deploys the new Istio control plane with an updated revision label, for example mymesh-v1-22-0. Workloads can then be migrated between control planes by using the revision label on namespaces or workloads, for example istio.io/rev=mymesh-v1-22-0.

Setting your updateStrategy to RevisionBased also has implications for integrations, such as the cert-manager tool, and gateways.

Note

You can set updateStrategy to RevisionBased to use canary updates. Be aware that setting the updateStrategy to RevisionBased also has implications for some integrations with OpenShift Service Mesh, such as the cert-manager tool integration.

2.1.11. Supported multi-cluster topologies

Red Hat OpenShift Service Mesh 2 supported one form of multi-cluster, federation, which was introduced in OpenShift Service Mesh 2.1. Each cluster maintained its own independent control plane in this topology, with services only shared between those meshes on an as-needed basis.

Communication between federated meshes is through Istio gateways, so there was no need for Service Mesh control planes to watch remote Kubernetes control planes, as is the case with Istio’s multi-cluster service mesh topologies. Federation is ideal where service meshes are loosely coupled, such as those managed by different administrative teams.

OpenShift Service Mesh 3 introduces support for the following Istio multi-cluster topologies as well:

  • Multi-Primary
  • Primary-Remote
  • External control planes

These topologies effectively stretch a single, unified service mesh across multiple clusters, which is ideal when all clusters involved are managed by the same administrative team. Istio’s multi-cluster topologies are also ideal for implementing high-availability or failover use cases across a commonly managed set of applications.

2.1.12. Support for Istioctl

Red Hat OpenShift Service Mesh 1 and 2 did not include support for Istioctl, the command line utility for the Istio project that includes many diagnostic and debugging utilities. OpenShift Service Mesh 3 introduces support for Istioctl for select commands.

The following commands are supported in OpenShift Service Mesh 3:

Expand
CommandDescription

admin

Manage the control plane (istiod) configuration

analyze

Analyze the Istio configuration and print validation messages

completion

Generate the autocompletion script for the specified shell

create-remote-secret

Create a secret with credentials to allow Istio to access remote Kubernetes API servers

help

Display help about any command

proxy-config, pc

Retrieve information about the proxy configuration from Envoy (Kubernetes only)

proxy-status, ps

Retrieve the synchronization status of each Envoy in the mesh

remote-clusters

List the remote clusters each istiod instance is connected to

validate, v

Validate the Istio policy and rules files

version

Print build version information

waypoint

Manage the waypoint configuration

ztunnel-config

Update or retrieve the current Ztunnel configuration.

Installation and management of Istio is only supported by the OpenShift Service Mesh 3 Operator.

2.1.13. Kubernetes network policy management

By default, Red Hat OpenShift Service Mesh 2 created Kubernetes NetworkPolicy resources with the following behavior:

  • Ensured network applications and the control plane could communicate with each other.
  • Restricted ingress for mesh applications to only member projects.

OpenShift Service Mesh 3 does not create these policies. Instead, you must configure the level of isolation required for your environment. Istio provides fine grained access control of service mesh workloads through Authorization Policies. For more information, see "Authorization Policies".

In Red Hat OpenShift Service Mesh 2, you created the ServiceMeshControlPlane resource, and enabled mTLS strict mode by setting spec.security.dataPlane.mtls to true.

You were able to set the minimum and maximum TLS protocol versions by setting the spec.security.controlPlane.tls.minProtocolVersion or spec.security.controlPlane.tls.maxProtocolVersion in your ServiceMeshControlPlane resource.

In OpenShift Service Mesh 3, the Istio resource replaces the ServiceMeshControlPlane resource and does not include these settings.

To enable mTLS strict mode in OpenShift Service Mesh 3, you must apply the corresponding PeerAuthentication and DestinationRule resources.

In OpenShift Service Mesh 3, you can enable the minimum TLS protocol by setting spec.meshConfig.tlsDefaults.minProtocolVersion in your Istio resource. For more information, see "Istio Workload Minimum TLS Version Configuration".

In OpenShift Service Mesh 2 and OpenShift Service Mesh 3, auto mTLS remains enabled by default.

To maintain access to external services when migrating to Red Hat OpenShift Service Mesh 3.0, you must explicitly enable DNS capture in the proxy metadata settings.

This is required for any ServiceEntry resources that rely on DNS resolution. Failure to enable this feature results in application errors such as Name or service not known.

OpenShift Service Mesh 2.6 enabled DNS capture by default to support federation, which did not align with the upstream Istio project. OpenShift Service Mesh 3.0 removes this default configuration and aligns with the upstream project’s multicluster topologies.

To configure DNS capture in OpenShift Service Mesh 3.0, set the ISTIO_META_DNS_AUTO_ALLOCATE and ISTIO_META_DNS_CAPTURE fields to true in the spec.values.meshConfig.defaultConfig.proxyMetadata path of your Istio resource.

Note

The equivalent of spec.values.meshConfig.defaultConfig.proxyMetadata in OpenShift Service Mesh 2.6 was spec.proxy.runtime.container.env.

2.2. Premigration checklists

Complete these premigration checklists to prepare your OpenShift Service Mesh 2 environment for an upgrade by disabling traditional add-ons, migrating gateway configurations, and validating resource compatibility for OpenShift Service Mesh 3.

2.2.1. Before you begin

Verify that your environment meets the following requirements, version dependencies, and operator installations necessary to begin the migration from OpenShift Service Mesh 2 to OpenShift Service Mesh 3.

  • You have read "Migrating from Service Mesh 2 to Service Mesh 3".
  • You have read and understand the "Differences between OpenShift Service Mesh 2 and OpenShift Service Mesh 3" section.
  • You have reviewed the "Migrating references" section.
  • You want to migrate from OpenShift Service Mesh 2 to OpenShift Service Mesh 3.
  • You are running OpenShift Service Mesh 2.6.14.
  • You have upgraded your ServiceMeshControlPlane resource to the latest version.
  • If you are using the Kiali Operator provided by Red Hat, you are running the latest version.
  • You have installed the OpenShift Service Mesh Operator 3. To install the OpenShift Service Mesh 3 Operator, see "Installing OpenShift Service Mesh".
Important

You must complete the following checklists before you can begin migrating your deployment and workloads.

To prepare for your migration to OpenShift Service Mesh 3, you must disable legacy add-ons in your OpenShift Service Mesh 2 ServiceMeshControlPlane resource and reconfigure replacements for the features that those add-ons provided.

  • ❏ Disable Prometheus in your ServiceMeshControlPlane resource: spec.addons.prometheus.enabled=false

    • ❏ Configure the ServiceMeshControlPlane with OpenShift Monitoring as the replacement. These instructions also include installing a standalone Kiali resource. Both can be done at the same time. For more information, see "Integration with user-workload monitoring".
    • ❏ If you are not using OpenShift monitoring, see: "Integration with external Prometheus installation".
  • ❏ Disable tracing in your ServiceMeshControlPlane resource: spec.tracing.type=None

    • ❏ Configure the ServiceMeshControlPlane with OpenShift Distributed Tracing as the replacement. For more information, see "Configuring Red Hat OpenShift distributed tracing platform (Tempo) and the Red Hat build of OpenTelemetry".
  • ❏ Disable Kiali in your ServiceMeshControlPlane resource: spec.addons.kiali.enabled=false

    • ❏ If you did not create a standalone Kiali resource as part of Prometheus or tracing, see: "Using Kiali Operator provided by Red Hat".
Warning

Red Hat OpenShift Service Mesh 3 fails to install if outdated ServiceEntry custom resources are present in the cluster. The upstream Istio version 1.24 introduced schema changes that cause installation failures for ServiceEntry resources that miss port numbers or exceed 256 hostnames. You can check for affected resources by running the following commands:

  • For ServiceEntry with hostnames over 256, run the following command:

    $ oc get serviceentries -A -o json | jq -r '.items[] | select(.spec.hosts | length > 256) | "\(.metadata.namespace)/\(.metadata.name): \(.spec.hosts | length) hosts"'
  • For ServiceEntry with missing port numbers, run the following command:

    $ oc get serviceentries -A -o json | jq -r '.items[] | select(.spec.ports == null or (.spec.ports | length == 0)) | "\(.metadata.namespace)/\(.metadata.name)"'

To ensure a seamless migration to Red Hat OpenShift Service Mesh 3, perform the following corrective actions before installing the OSSM 3 operator:

  • Split ServiceEntry resources: You must split any ServiceEntry containing more than 256 hosts into multiple smaller resources.
  • Validate port configurations: You must ensure that all the ServiceEntry definitions include the required port specifications.

2.2.3. Migrate to explicitly managed routes

Automatic route creation, also known as Istio OpenShift Routing (IOR), is a deprecated feature that is disabled by default for any ServiceMeshControlPlane resource created using OpenShift Service Mesh 2.5 and later.

To move from OpenShift Service Mesh 2 to OpenShift Service Mesh 3, you need to migrate from IOR to explicitly-managed routes.

If you already moved to explicitly-managed routes in OpenShift Service Mesh 2, then continue to gateway injection.

  • ❏ Migrate from Istio OpenShift Routing (IOR) to to explicitly-managed routes. For more information, see "Service Mesh route migration".

2.2.4. Migrate to gateway injection

Gateways were controlled by the ServiceMeshControlPlane (SMCP) resource in OpenShift Service Mesh 2. The OpenShift Service Mesh 3 control plane does not manage gateways so you must migrate from SMCP-Defined gateways to gateway injection.

  • ❏ Migrate to gateway injection. For more information, see "Service Mesh gateway migration".

2.2.5. Disable network policy management

If you do not want your network policies in place during your migration:

  • ❏ Disable network policy management in the OpenShift Service Mesh 2 ServiceMeshControlPlane resource: spec.security.manageNetworkPolicy=false.
  • ❏ Complete the rest of the checklists.
  • ❏ Migrate your deployment and workloads.
  • ❏ Manually recreate your network policies after you have migrated your workloads.

If you want your network policies in place during your migration:

  • ❏ Manually set up network policies to use during migration. For more information, see "Migrating network policies from Service Mesh 2 to Service Mesh 3".
  • ❏ Disable network policy management in the OpenShift Service Mesh 2 ServiceMeshControlPlane resource: spec.security.manageNetworkPolicy=false.
  • ❏ Complete the rest of the checklists.
  • ❏ Migrate your deployment and workloads.

2.2.6. Disable Grafana in OpenShift Service Mesh 2

Grafana is not supported in OpenShift Service Mesh 3, and must be disabled in your OpenShift Service Mesh 2 ServiceMeshControlPlane.

  • ❏ Disable Grafana in your OpenShift Service Mesh 2 ServiceMeshControlPlane: spec.addons.grafana.enabled=false.

2.2.7. Example resource files

After you have completed the premigration procedures, your OpenShift Service Mesh 2 resources might be similar to the following examples:

2.2.7.1. The ServiceMeshControlPlane resource file

You can see the following example configuration for ServiceMeshControlPlane resource:

apiVersion: maistra.io/v2
kind: ServiceMeshControlPlane
metadata:
  name: basic
  namespace: istio-system
spec:
  version: v2.6
  security:
    manageNetworkPolicy: false
  addons:
    grafana:
      enabled: false
    kiali:
      enabled: false
    prometheus:
      enabled: false
  meshConfig:
    extensionProviders:
      - name: prometheus
        prometheus: {}
      - name: otel
        opentelemetry:
          port: 4317
          service: otel-collector.istio-system.svc.cluster.local
  gateways:
    enabled: false
    openshiftRoute:
      enabled: false
  mode: MultiTenant
  tracing:
    type: None
  • spec.version specifies the version of OpenShift Service Mesh to use.
  • spec.security.manageNetworkPolicy specifies how to manage network policies.
  • spec.addons specifies the addons to enable or disable.
  • spec.meshConfig specifies the mesh configuration.
  • spec.gateways specifies the gateways configuration.
  • spec.mode specifies the mode of operation.
  • spec.tracing specifies the tracing configuration.

2.2.7.2. Telemetry resource file

The Telemetry resource file is located in your root namespace. The following example uses istio-system as the root namespace.

You can see the following example configuration for Telemetry resource:

apiVersion: telemetry.istio.io/v1
kind: Telemetry
metadata:
  name: mesh-default
  namespace: istio-system
spec:
  metrics:
    - providers:
        - name: prometheus
  tracing:
    - providers:
        - name: otel
  • spec.metrics specify your metrics provider. The name field must match what is specified in your ServiceMeshControlPlane resource in the spec.meshConfig.extensionProviders field.
  • spec.tracing specify your tracing provider. The name field must match what is specified in your ServiceMeshControlPlane resource in the spec.meshConfig.extensionProviders field.

2.2.7.3. Kiali resource file

You can see the following example configuration for Kiali resource:

apiVersion: kiali.io/v1alpha1
kind: Kiali
metadata:
  name: kiali
  namespace: istio-system
spec:
  version: default
  external_services:
    prometheus:
      auth:
        type: bearer
        use_kiali_token: true
      thanos_proxy:
        enabled: true
      url: https://thanos-querier.openshift-monitoring.svc.cluster.local:9091
    tracing:
      enabled: true
      provider: tempo
      use_grpc: false
      internal_url: http://tempo-sample-query-frontend.tempo:3200
      external_url: https://tempo-sample-query-frontend-tempo.apps-crc.testing
    grafana:
      enabled: false
  • spec.version specifies the version of Kiali to use. You can use the default value of the version parameter if you install OpenShift Service Mesh 3 before updating Kiali. The default version is compatible with both 2.6 and 3.0 control planes.
  • spec.external_services.prometheus specifies the configuration for the external Prometheus service.
  • spec.external_services.tracing specifies the configuration for the external tracing store.
  • spec.external_services.grafana disables the Grafana configuration. Grafana is not supported with OpenShift Service Mesh 3.0.

2.2.8. Find your deployment model

Run the following command to find your deployment model:

oc get smcp <smcp-name> -n <smcp-namespace> -o jsonpath='{.spec.mode}'
Note

If you did not set a value for the .spec.mode parameter in your ServiceMeshControlPlane resource, your deployment is multitenant.

2.2.9. Find your deployment model

If you are not using the cert-manager tool with your deployment, you are ready to migrate your deployment. Refer to the following migration guides based on your deployment model:

  • "Multitenant migration guide"
  • "Cluster-wide migration guide"

If you are unsure, you can check if you are using the cert-manager tool with your deployment.

You must check if your deployment uses the cert-manager tool. If you are using the cert-manager tool with OpenShift Service Mesh 2, you must perform additional configurations before you can start migrating your deployments and workloads.

Procedure

  1. Use one of the following ways to check if you are using the cert-manager tool with your deployment:

    1. Inspect your ServiceMeshControlPlane resource to verify that the spec.security.certificateAuthority.type parameter is set to cert-manager:

      apiVersion: maistra.io/v2
      kind: ServiceMeshControlPlane
      metadata:
        name: basic
        namespace: istio-system
      spec:
        ...
        security:
          certificateAuthority:
            cert-manager:
              address: cert-manager-istio-csr.istio-system.svc:443
            type: cert-manager
          dataPlane:
            mtls: true
          identity:
            type: ThirdParty
          manageNetworkPolicy: false
    2. Run the following command to verify that the spec.security.certificateAuthority.type parameter is set to cert-manager:

      oc get smcp <smcp-name> -n <smcp-namespace> -o jsonpath='{.spec.security.certificateAuthority.type}'

      Example output:

      cert-manager
      Next steps for migrating with the cert-manager tool

      There are some configurations you must complete first before you can start migrating your deployments:

      • "Migrating a multitenant deployment with the cert-manager tool"
      • "Cluster-wide migration methods"

OpenShift Service Mesh 3 changes how network security is managed by removing the automatic generation of network policies previously controlled by the spec.security.manageNetworkPolicy field in Red Hat OpenShift Service Mesh 2.

You can set up network policies to use during your migration.

Note

It is recommended to re-create your network policies after you have migrated your deployment and workloads. However, if your security policies require you to keep your network policies, you must re-create them first, and then set the spec.security.manageNetworkPolicy field to false as outlined in the migration checklists.

Important
  • During the recreation of network policies from OpenShift Service Mesh 2 to OpenShift Service Mesh 3, both control planes must have access to all workloads and all workloads must have access to control planes.
  • The maistra.io/member-of: label is removed from the namespaces during migration.

Prerequisites

  • You have deployed OpenShift Container Platform 4.14 or later.
  • You have logged in to the OpenShift Container Platform web console as a user with the cluster-admin role.
  • You have the OpenShift Service Mesh 2.6.14 Operator installed.
  • You have the ServiceMeshControlPlane 2.6 resource installed.
  • In OpenShift Service Mesh 2, you have set spec.security.manageNetworkPolicy=true in your ServiceMeshControlPlane resource.
  • You have deployed the bookinfo and bookinfo2 applications.

Procedure

  1. Label namespaces by running the following command:

    $ oc label namespace <app_namespace> service-mesh=enabled
    Note

    Use a label scoped specifically to your mesh that you can reuse for discovery selectors.

  2. Create your network policies by using the following NetworkPolicy example configurations:

    You can see the following example configuration for Istiod network policy in a mesh namespace:

    apiVersion: networking.k8s.io/v1
    kind: NetworkPolicy
    metadata:
      name: istiod-basic
      namespace: istio-system
    spec:
      ingress:
        - {}
      podSelector:
        matchLabels:
          app: istiod
          istio.io/rev: basic
      policyTypes:
        - Ingress

    You can see the following example configuration for an expose route policy in a mesh namespace:

    apiVersion: networking.k8s.io/v1
    kind: NetworkPolicy
    metadata:
      name: expose-route-basic
      namespace: istio-system
    spec:
      podSelector:
        matchLabels:
          maistra.io/expose-route: "true"
      ingress:
        - from:
            - namespaceSelector:
                matchLabels:
                  network.openshift.io/policy-group: ingress
      policyTypes:
        - Ingress

    You can see the following example configuration for a default mesh network policy in a mesh namespace:

    apiVersion: networking.k8s.io/v1
    kind: NetworkPolicy
    metadata:
      name: istio-mesh
      namespace: istio-system
    spec:
      ingress:
        - from:
            - namespaceSelector:
                matchLabels:
                  service-mesh: enabled
      podSelector: {}
      policyTypes:
        - Ingress

    You can see the following example configuration for an expose route network policy in the bookinfo namespace:

    apiVersion: networking.k8s.io/v1
    kind: NetworkPolicy
    metadata:
      name: istio-expose-route
      namespace: bookinfo
    spec:
      podSelector:
        matchLabels:
          maistra.io/expose-route: "true"
      ingress:
        - from:
            - namespaceSelector:
                matchLabels:
                  network.openshift.io/policy-group: ingress
      policyTypes:
        - Ingress

    You can see the following example configuration for mesh network policy in the bookinfo namespace:

    apiVersion: networking.k8s.io/v1
    kind: NetworkPolicy
    metadata:
      name: istio-mesh
      namespace: bookinfo
    spec:
      ingress:
        - from:
            - namespaceSelector:
                matchLabels:
                  service-mesh: enabled
      podSelector: {}
      policyTypes:
        - Ingress

    You can see the following example configuration for an expose route network policy in the bookinfo2 namespace:

    apiVersion: networking.k8s.io/v1
    kind: NetworkPolicy
    metadata:
      name: istio-expose-route
      namespace: bookinfo2
    spec:
      podSelector:
        matchLabels:
          maistra.io/expose-route: "true"
      ingress:
        - from:
            - namespaceSelector:
                matchLabels:
                  network.openshift.io/policy-group: ingress
      policyTypes:

    You can see the following example configuration for mesh network policy in the bookinfo2 namespace:

    apiVersion: networking.k8s.io/v1
    kind: NetworkPolicy
    metadata:
      name: istio-mesh
      namespace: bookinfo2
    spec:
      ingress:
        - from:
            - namespaceSelector:
                matchLabels:
                  service-mesh: enabled
      podSelector: {}
      policyTypes:
        - Ingress
  3. Disable network policies in OpenShift Service Mesh 2 by setting the spec.security.manageNetworkPolicy field to false in your ServiceMeshControlPlane resource.

    Note

    Setting the spec.security.manageNetworkPolicy field to false in your ServiceMeshControlPlane resource removes the network policies created by default in OpenShift Service Mesh 2.

  4. Find your current active revision by running the following command:

    $ oc get istios <istio_name>

    Example output:

    NAME             REVISIONS   READY   IN USE   ACTIVE REVISION   STATUS    VERSION   AGE
    istio-tenant-a   1           1       0        istio-tenant-a    Healthy   v1.24.3   30s
  5. Copy the active revision name from the output to use for your istio.io/rev label in your second Istiod network policy for OpenShift Service Mesh 3.
  6. Create a second Istiod network policy for OpenShift Service Mesh 3 by using the following NetworkPolicy example configuration:

    apiVersion: networking.k8s.io/v1
    kind: NetworkPolicy
    metadata:
      name: istio-istiod-v3
      namespace: istio-system
    spec:
      ingress:
        - {}
      podSelector:
        matchLabels:
          app: istiod
          istio.io/rev: istio-tenant-a 
    1
    
      policyTypes:
        - Ingress
    Note

    You must match your current active revision name through the istio.io/rev label in your second Istiod network policy.

Next steps

  • In OpenShift Service Mesh 2, set the spec.security.manageNetworkPolicy field to false in your ServiceMeshControlPlane resource, and continue with the migration checklists.

Review the architectural and configuration changes in Kiali for Red Hat OpenShift Service Mesh 3, including updated topology graphs, deprecated namespace settings, and renamed service URLs.

2.4.1. About migrating Kiali differences

Kiali Operator provided by Red Hat with Red Hat OpenShift Service Mesh 3 introduces the following changes:

New topology graphs
The Traffic Page Graph page has been reorganized and built using Patternfly topology with a new topology view showcasing the mesh infrastructure.
Deprecated configuration settings

To control which namespaces are accessible or visible to users in OpenShift Service Mesh 3, Kiali relies on discoverySelectors.

By default, deployment.cluster_wide_access=true is enabled, granting Kiali cluster-wide access to all namespaces in the local cluster. If you are migrating a cluster-wide deployment with Kiali, you must remove the following deprecated and unavailable configuration settings from your Kiali custom resource (CR):

  • spec.deployment.accessible_namespaces
  • api.namespaces.exclude
  • api.namespaces.include
  • api.namespaces.label_selector_exclude
  • api.namespaces.label_selector_include

    If you are are using discovery selectors in Istio to restrict the namespaces that Istiod watches, then those must match the discovery selectors in your Kiali CR.

Renamed configuration settings

The following configuration settings have been renamed:

Expand
Old configurationNew configuration

external_service.grafana.in_cluster_url

external_service.grafana.internal_url

external_service.grafana.url

external_service.grafana.external_url

external_service.tracing.in_cluster_url

external_service.tracing.internal_url

external_service.tracing.url

external_service.tracing.external_url

These changes reflect evolving capabilities and configuration standards of Kiali within OpenShift Service Mesh 3.

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top