$ oc login --username=<NAMEOFUSER> https://<HOSTNAME>:6443
You are viewing documentation for a Red Hat OpenShift service Mesh release that is no longer supported. service Mesh version 1.0 and 1.1 control planes are no longer supported. For information about upgrading your service mesh control plane, see Upgrading service Mesh. For information about the support status of a particular Red Hat OpenShift service Mesh release, see the Product lifecycle page. |
Installing the service Mesh involves installing the OpenShift Elasticsearch, Jaeger, Kiali and service Mesh Operators, creating and managing a serviceMeshControlPlane
resource to deploy the control plane, and creating a serviceMeshMemberRoll
resource to specify the namespaces associated with the service Mesh.
Mixer’s policy enforcement is disabled by default. You must enable it to run policy tasks. See Update Mixer policy enforcement for instructions on enabling Mixer policy enforcement. |
Multi-tenant control plane installations are the default configuration. |
The service Mesh documentation uses |
Follow the Preparing to install Red Hat OpenShift service Mesh process.
An account with the cluster-admin
role.
The service Mesh installation process uses the OperatorHub to install the serviceMeshControlPlane
custom resource definition within the openshift-operators
project. The Red Hat OpenShift service Mesh defines and monitors the serviceMeshControlPlane
related to the deployment, update, and deletion of the control plane.
Starting with Red Hat OpenShift service Mesh 1.1.18.2, you must install the OpenShift Elasticsearch Operator, the Jaeger Operator, and the Kiali Operator before the Red Hat OpenShift service Mesh Operator can install the control plane.
The default Red Hat OpenShift distributed tracing platform deployment uses in-memory storage because it is designed to be installed quickly for those evaluating Red Hat OpenShift distributed tracing, giving demonstrations, or using Red Hat OpenShift distributed tracing platform in a test environment. If you plan to use Red Hat OpenShift distributed tracing platform in production, you must install and configure a persistent storage option, in this case, Elasticsearch.
You have access to the OpenShift Container Platform web console.
You have access to the cluster as a user with the cluster-admin
role. If you use Red Hat OpenShift Dedicated, you must have an account with the dedicated-admin
role.
Do not install Community versions of the Operators. Community Operators are not supported. |
If you have already installed the OpenShift Elasticsearch Operator as part of OpenShift Logging, you do not need to install the OpenShift Elasticsearch Operator again. The Red Hat OpenShift distributed tracing platform Operator creates the Elasticsearch instance using the installed OpenShift Elasticsearch Operator. |
Log in to the OpenShift Container Platform web console as a user with the cluster-admin
role. If you use Red Hat OpenShift Dedicated, you must have an account with the dedicated-admin
role.
Navigate to Operators → OperatorHub.
Type Elasticsearch into the filter box to locate the OpenShift Elasticsearch Operator.
Click the OpenShift Elasticsearch Operator provided by Red Hat to display information about the Operator.
Click Install.
On the Install Operator page, select the stable Update Channel. This automatically updates your Operator as new versions are released.
Accept the default All namespaces on the cluster (default). This installs the Operator in the default openshift-operators-redhat
project and makes the Operator available to all projects in the cluster.
The Elasticsearch installation requires the openshift-operators-redhat namespace for the OpenShift Elasticsearch Operator. The other Red Hat OpenShift distributed tracing Operators are installed in the |
Accept the default Automatic approval strategy. By accepting the default, when a new version of this Operator is available, Operator Lifecycle Manager (OLM) automatically upgrades the running instance of your Operator without human intervention. If you select Manual updates, when a newer version of an Operator is available, OLM creates an update request. As a cluster administrator, you must then manually approve that update request to have the Operator updated to the new version.
The Manual approval strategy requires a user with appropriate credentials to approve the Operator install and subscription process. |
Click Install.
On the Installed Operators page, select the openshift-operators-redhat
project. Wait until you see that the OpenShift Elasticsearch Operator shows a status of "InstallSucceeded" before continuing.
To install Red Hat OpenShift distributed tracing platform, you use the OperatorHub to install the Red Hat OpenShift distributed tracing platform Operator.
By default, the Operator is installed in the openshift-operators
project.
You have access to the OpenShift Container Platform web console.
You have access to the cluster as a user with the cluster-admin
role. If you use Red Hat OpenShift Dedicated, you must have an account with the dedicated-admin
role.
If you require persistent storage, you must also install the OpenShift Elasticsearch Operator before installing the Red Hat OpenShift distributed tracing platform Operator.
Do not install Community versions of the Operators. Community Operators are not supported. |
Log in to the OpenShift Container Platform web console as a user with the cluster-admin
role. If you use Red Hat OpenShift Dedicated, you must have an account with the dedicated-admin
role.
Navigate to Operators → OperatorHub.
Type distributing tracing platform into the filter to locate the Red Hat OpenShift distributed tracing platform Operator.
Click the Red Hat OpenShift distributed tracing platform Operator provided by Red Hat to display information about the Operator.
Click Install.
On the Install Operator page, select the stable Update Channel. This automatically updates your Operator as new versions are released.
Accept the default All namespaces on the cluster (default). This installs the Operator in the default openshift-operators
project and makes the Operator available to all projects in the cluster.
Accept the default Automatic approval strategy. By accepting the default, when a new version of this Operator is available, Operator Lifecycle Manager (OLM) automatically upgrades the running instance of your Operator without human intervention. If you select Manual updates, when a newer version of an Operator is available, OLM creates an update request. As a cluster administrator, you must then manually approve that update request to have the Operator updated to the new version.
The Manual approval strategy requires a user with appropriate credentials to approve the Operator install and subscription process. |
Click Install.
Navigate to Operators → Installed Operators.
On the Installed Operators page, select the openshift-operators
project. Wait until you see that the Red Hat OpenShift distributed tracing platform Operator shows a status of "Succeeded" before continuing.
You must install the Kiali Operator for the Red Hat OpenShift service Mesh Operator to install the service Mesh control plane.
Do not install Community versions of the Operators. Community Operators are not supported. |
Access to the OpenShift Container Platform web console.
Log in to the OpenShift Container Platform web console.
Navigate to Operators → OperatorHub.
Type Kiali into the filter box to find the Kiali Operator.
Click the Kiali Operator provided by Red Hat to display information about the Operator.
Click Install.
On the Operator Installation page, select the stable Update Channel.
Select All namespaces on the cluster (default). This installs the Operator in the default openshift-operators
project and makes the Operator available to all projects in the cluster.
Select the Automatic Approval Strategy.
The Manual approval strategy requires a user with appropriate credentials to approve the Operator install and subscription process. |
Click Install.
The Installed Operators page displays the Kiali Operator’s installation progress.
To install Red Hat OpenShift service Mesh, install following Operators in this order. Repeat the procedure for each Operator.
OpenShift Elasticsearch
Red Hat OpenShift distributed tracing platform
Kiali
Red Hat OpenShift service Mesh
If you have already installed the OpenShift Elasticsearch Operator as part of OpenShift Logging, you do not need to install the OpenShift Elasticsearch Operator again. The Red Hat OpenShift distributed tracing platform Operator will create the Elasticsearch instance using the installed OpenShift Elasticsearch Operator. |
Log in to the OpenShift Container Platform web console as a user with the cluster-admin
role. If you use Red Hat OpenShift Dedicated, you must have an account with the dedicated-admin
role.
In the OpenShift Container Platform web console, click Operators → OperatorHub.
Type the name of the Operator into the filter box and select the Red Hat version of the Operator. Community versions of the Operators are not supported.
Click Install.
On the Install Operator page for each Operator, accept the default settings.
Click Install. Wait until the Operator has installed before repeating the steps for the next Operator in the list.
The OpenShift Elasticsearch Operator is installed in the openshift-operators-redhat
namespace and is available for all namespaces in the cluster.
The Red Hat OpenShift distributed tracing platform is installed in the openshift-distributed-tracing
namespace and is available for all namespaces in the cluster.
The Kiali and Red Hat OpenShift service Mesh Operators are installed in the openshift-operators
namespace and are available for all namespaces in the cluster.
After all you have installed all four Operators, click Operators → Installed Operators to verify that your Operators installed.
The serviceMeshControlPlane
resource defines the configuration to be used during installation. You can deploy the default configuration provided by Red Hat or customize the serviceMeshControlPlane
file to fit your business needs.
You can deploy the service Mesh control plane by using the OpenShift Container Platform web console or from the command line using the oc
client tool.
Follow this procedure to deploy the Red Hat OpenShift service Mesh control plane by using the web console. In this example, istio-system
is the name of the control plane project.
The Red Hat OpenShift service Mesh Operator must be installed.
Review the instructions for how to customize the Red Hat OpenShift service Mesh installation.
An account with the cluster-admin
role.
Log in to the OpenShift Container Platform web console as a user with the cluster-admin
role.
Create a project named istio-system
.
Navigate to Home → Projects.
Click Create Project.
Enter istio-system
in the Name field.
Click Create.
Navigate to Operators → Installed Operators.
If necessary, select istio-system
from the Project menu. You may have to wait a few moments for the Operators to be copied to the new project.
Click the Red Hat OpenShift service Mesh Operator. Under Provided APIs, the Operator provides links to create two resource types:
A serviceMeshControlPlane
resource
A serviceMeshMemberRoll
resource
Under Istio service Mesh Control Plane click Create serviceMeshControlPlane.
On the Create service Mesh Control Plane page, modify the YAML for the default serviceMeshControlPlane
template as needed.
For additional information about customizing the control plane, see customizing the Red Hat OpenShift service Mesh installation. For production, you must change the default Jaeger template. |
Click Create to create the control plane. The Operator creates pods, services, and service Mesh control plane components based on your configuration parameters.
Click the Istio service Mesh Control Plane tab.
Click the name of the new control plane.
Click the Resources tab to see the Red Hat OpenShift service Mesh control plane resources the Operator created and configured.
Follow this procedure to deploy the Red Hat OpenShift service Mesh control plane the command line.
The Red Hat OpenShift service Mesh Operator must be installed.
Review the instructions for how to customize the Red Hat OpenShift service Mesh installation.
An account with the cluster-admin
role.
Access to the OpenShift CLI (oc
).
Log in to the OpenShift Container Platform CLI as a user with the cluster-admin
role.
$ oc login --username=<NAMEOFUSER> https://<HOSTNAME>:6443
Create a project named istio-system
.
$ oc new-project istio-system
Create a serviceMeshControlPlane
file named istio-installation.yaml
using the example found in "Customize the Red Hat OpenShift service Mesh installation". You can customize the values as needed to match your use case. For production deployments you must change the default Jaeger template.
Run the following command to deploy the control plane:
$ oc create -n istio-system -f istio-installation.yaml
Execute the following command to see the status of the control plane installation.
$ oc get smcp -n istio-system
The installation has finished successfully when the STATUS column is ComponentsReady
.
NAME READY STATUS PROFILES VERSION AGE basic-install 11/11 ComponentsReady ["default"] v1.1.18 4m25s
Run the following command to watch the progress of the Pods during the installation process:
$ oc get pods -n istio-system -w
You should see output similar to the following:
NAME READY STATUS RESTARTS AGE
grafana-7bf5764d9d-2b2f6 2/2 Running 0 28h
istio-citadel-576b9c5bbd-z84z4 1/1 Running 0 28h
istio-egressgateway-5476bc4656-r4zdv 1/1 Running 0 28h
istio-galley-7d57b47bb7-lqdxv 1/1 Running 0 28h
istio-ingressgateway-dbb8f7f46-ct6n5 1/1 Running 0 28h
istio-pilot-546bf69578-ccg5x 2/2 Running 0 28h
istio-policy-77fd498655-7pvjw 2/2 Running 0 28h
istio-sidecar-injector-df45bd899-ctxdt 1/1 Running 0 28h
istio-telemetry-66f697d6d5-cj28l 2/2 Running 0 28h
jaeger-896945cbc-7lqrr 2/2 Running 0 11h
kiali-78d9c5b87c-snjzh 1/1 Running 0 22h
prometheus-6dff867c97-gr2n5 2/2 Running 0 28h
For a multitenant installation, Red Hat OpenShift service Mesh supports multiple independent control planes within the cluster. You can create reusable configurations with serviceMeshControlPlane
templates. For more information, see Creating control plane templates.
The serviceMeshMemberRoll
lists the projects that belong to the service Mesh control plane. Only projects listed in the serviceMeshMemberRoll
are affected by the control plane. A project does not belong to a service mesh until you add it to the member roll for a particular control plane deployment.
You must create a serviceMeshMemberRoll
resource named default
in the same project as the serviceMeshControlPlane
, for example istio-system
.
You can add one or more projects to the service Mesh member roll from the web console. In this example, istio-system
is the name of the service Mesh control plane project.
An installed, verified Red Hat OpenShift service Mesh Operator.
List of existing projects to add to the service mesh.
Log in to the OpenShift Container Platform web console.
If you do not already have services for your mesh, or you are starting from scratch, create a project for your applications. It must be different from the project where you installed the service Mesh control plane.
Navigate to Home → Projects.
Enter a name in the Name field.
Click Create.
Navigate to Operators → Installed Operators.
Click the Project menu and choose the project where your serviceMeshControlPlane
resource is deployed from the list, for example istio-system
.
Click the Red Hat OpenShift service Mesh Operator.
Click the Istio service Mesh Member Roll tab.
Click Create serviceMeshMemberRoll
Click Members, then enter the name of your project in the Value field. You can add any number of projects, but a project can only belong to one serviceMeshMemberRoll
resource.
Click Create.
You can add a project to the serviceMeshMemberRoll
from the command line.
An installed, verified Red Hat OpenShift service Mesh Operator.
List of projects to add to the service mesh.
Access to the OpenShift CLI (oc
).
Log in to the OpenShift Container Platform CLI.
$ oc login --username=<NAMEOFUSER> https://<HOSTNAME>:6443
If you do not already have services for your mesh, or you are starting from scratch, create a project for your applications. It must be different from the project where you installed the service Mesh control plane.
$ oc new-project <your-project>
To add your projects as members, modify the following example YAML. You can add any number of projects, but a project can only belong to one serviceMeshMemberRoll
resource. In this example, istio-system
is the name of the service Mesh control plane project.
apiVersion: maistra.io/v1
kind: serviceMeshMemberRoll
metadata:
name: default
namespace: istio-system
spec:
members:
# a list of projects joined into the service mesh
- your-project-name
- another-project-name
Run the following command to upload and create the serviceMeshMemberRoll
resource in the istio-system
namespace.
$ oc create -n istio-system -f servicemeshmemberroll-default.yaml
Run the following command to verify the serviceMeshMemberRoll
was created successfully.
$ oc get smmr -n istio-system default
The installation has finished successfully when the STATUS
column is Configured
.
You can add or remove projects from an existing service Mesh serviceMeshMemberRoll
resource using the web console.
You can add any number of projects, but a project can only belong to one serviceMeshMemberRoll
resource.
The serviceMeshMemberRoll
resource is deleted when its corresponding serviceMeshControlPlane
resource is deleted.
An installed, verified Red Hat OpenShift service Mesh Operator.
An existing serviceMeshMemberRoll
resource.
Name of the project with the serviceMeshMemberRoll
resource.
Names of the projects you want to add or remove from the mesh.
Log in to the OpenShift Container Platform web console.
Navigate to Operators → Installed Operators.
Click the Project menu and choose the project where your serviceMeshControlPlane
resource is deployed from the list, for example istio-system
.
Click the Red Hat OpenShift service Mesh Operator.
Click the Istio service Mesh Member Roll tab.
Click the default
link.
Click the YAML tab.
Modify the YAML to add or remove projects as members. You can add any number of projects, but a project can only belong to one serviceMeshMemberRoll
resource.
Click Save.
Click Reload.
You can modify an existing service Mesh member roll using the command line.
An installed, verified Red Hat OpenShift service Mesh Operator.
An existing serviceMeshMemberRoll
resource.
Name of the project with the serviceMeshMemberRoll
resource.
Names of the projects you want to add or remove from the mesh.
Access to the OpenShift CLI (oc
).
Log in to the OpenShift Container Platform CLI.
Edit the serviceMeshMemberRoll
resource.
$ oc edit smmr -n <controlplane-namespace>
Modify the YAML to add or remove projects as members. You can add any number of projects, but a project can only belong to one serviceMeshMemberRoll
resource.
apiVersion: maistra.io/v1
kind: serviceMeshMemberRoll
metadata:
name: default
namespace: istio-system #control plane project
spec:
members:
# a list of projects joined into the service mesh
- your-project-name
- another-project-name
If you choose to update manually, the Operator Lifecycle Manager (OLM) controls the installation, upgrade, and role-based access control (RBAC) of Operators in a cluster. OLM runs by default in OpenShift Container Platform. OLM uses CatalogSources, which use the Operator Registry API, to query for available Operators as well as upgrades for installed Operators.
For more information about how OpenShift Container Platform handled upgrades, refer to the Operator Lifecycle Manager documentation.
In order to update the configuration for sidecar proxies the application administrator must restart the application pods.
If your deployment uses automatic sidecar injection, you can update the pod template in the deployment by adding or modifying an annotation. Run the following command to redeploy the pods:
$ oc patch deployment/<deployment> -p '{"spec":{"template":{"metadata":{"annotations":{"kubectl.kubernetes.io/restartedAt": "'`date -Iseconds`'"}}}}}'
If your deployment does not use automatic sidecar injection, you must manually update the sidecars by modifying the sidecar container image specified in the deployment or pod, and then restart the pods.
Prepare to deploy applications on Red Hat OpenShift service Mesh.