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 Red Hat OpenShift Service on AWS web console or the command line using the oc
client tool.
|
This basic installation is configured based on the default Red Hat OpenShift Service on AWS 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 Red Hat OpenShift Service on AWS 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 the istio-system
project, separate from your microservices and Operators.
-
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 Service on AWS.
-
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 Red Hat OpenShift Service on AWS 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 Service on AWS. |
-
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 Red Hat OpenShift Service on AWS 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