The control plane includes Istiod, Ingress and Egress Gateways, and other components, such as Kiali and Jaeger. The control plane must be deployed in a separate namespace than the service Mesh Operators and the data plane applications and services. You can deploy a basic installation of the serviceMeshControlPlane
(SMCP) from the OpenShift Dedicated web console or the command line using the oc
client tool.
|
This basic installation is configured based on the default OpenShift Dedicated settings and is not designed for production use. Use this default installation to verify your installation, and then configure your serviceMeshControlPlane settings for your environment.
|
Deploying the service Mesh control plane from the web console
You can deploy a basic serviceMeshControlPlane
by using the web console. In this example, istio-system
is the name of the service Mesh control plane project.
Procedure
-
Log in to the OpenShift Dedicated 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.
-
Create a project named istio-system
.
-
Navigate to Home → Projects.
-
Click Create Project.
-
In the Name field, enter istio-system
. The serviceMeshControlPlane
resource must be installed in a project that is separate from your microservices and Operators.
These steps use istio-system
as an example, but you can deploy your service Mesh control plane in any project as long as it is separate from the project that contains your services.
-
Click Create.
-
Navigate to Operators → Installed Operators.
-
Click the Red Hat OpenShift service Mesh Operator, then click Istio service Mesh Control Plane.
-
On the Istio service Mesh Control Plane tab, click Create serviceMeshControlPlane.
-
Accept the default service Mesh control plane version to take advantage of the features available in the most current version of the product. The version of the control plane determines the features available regardless of the version of the Operator.
-
Add the spec.security.identity.type.ThirdParty
field, required by Red Hat OpenShift Dedicated.
-
Click Create.
The Operator creates pods, services, and service Mesh control plane components based on your configuration parameters. You can configure serviceMeshControlPlane
settings at a later time.
Deploying the service Mesh control plane using the CLI
You can deploy a basic serviceMeshControlPlane
from the command line.
Prerequisites
-
The Red Hat OpenShift service Mesh Operator must be installed.
-
Access to the OpenShift CLI (oc
).
-
You are logged in to OpenShift Dedicated as a user with the dedicated-admin
role.
Procedure
-
Create a project named istio-system
.
$ oc new-project istio-system
The serviceMeshControlPlane
resource must be installed in the istio-system
project, separate from your microservices and Operators.
-
Create a serviceMeshControlPlane
file named istio-installation.yaml
using the following example. The version of the service Mesh control plane determines the features available regardless of the version of the Operator.
Example serviceMeshControlPlane
resource
apiVersion: maistra.io/v2
kind: serviceMeshControlPlane
metadata:
name: basic
namespace: istio-system
spec:
version: v2.6
security:
identity:
type: ThirdParty (1)
tracing:
type: None
sampling: 10000
policy:
type: Istiod
addons:
grafana:
enabled: true
kiali:
enabled: true
prometheus:
enabled: true
telemetry:
type: Istiod
1 |
Specifies a required setting for Red Hat OpenShift Dedicated. |
-
Run the following command to deploy the service Mesh control plane, where <istio_installation.yaml>
includes the full path to your file.
$ oc create -n istio-system -f <istio_installation.yaml>
-
To watch the progress of the pod deployment, run the following command:
$ oc get pods -n istio-system -w
You should see output similar to the following:
NAME READY STATUS RESTARTS AGE
grafana-b4d59bd7-mrgbr 2/2 Running 0 65m
istio-egressgateway-678dc97b4c-wrjkp 1/1 Running 0 108s
istio-ingressgateway-b45c9d54d-4qg6n 1/1 Running 0 108s
istiod-basic-55d78bbbcd-j5556 1/1 Running 0 108s
kiali-6476c7656c-x5msp 1/1 Running 0 43m
prometheus-58954b8d6b-m5std 2/2 Running 0 66m
Validating your SMCP installation with the CLI
You can validate the creation of the serviceMeshControlPlane
from the command line.
-
Prerequisites
-
The Red Hat OpenShift service Mesh Operator must be installed.
-
Access to the OpenShift CLI (oc
).
-
You are logged in to OpenShift Dedicated as a user with the dedicated-admin
role.
Procedure
-
Run the following command to verify the service Mesh control plane installation, where istio-system
is the namespace where you installed the service Mesh control plane.
$ oc get smcp -n istio-system
The installation has finished successfully when the STATUS
column is ComponentsReady
.
NAME READY STATUS PROFILES VERSION AGE
basic 10/10 ComponentsReady ["default"] 2.6.3 66m