1.9. Creating the ServiceMeshControlPlane
1.9.1. About ServiceMeshControlPlane 링크 복사링크가 클립보드에 복사되었습니다!
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 Container Platform web console or the command line using the oc client tool.
This basic installation is configured based on the default OpenShift Container Platform 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.
The Service Mesh documentation uses istio-system as the example project, but you can deploy the service mesh to any project.
1.9.1.1. 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.
Prerequisites
- The Red Hat OpenShift Service Mesh Operator must be installed.
-
An account with the
cluster-adminrole.
Procedure
-
Log in to the OpenShift Container Platform web console as a user with the
cluster-adminrole. If you use Red Hat OpenShift Dedicated, you must have an account with thededicated-adminrole. Create a project named
istio-system.-
Navigate to Home
Projects. - Click Create Project.
In the Name field, enter
istio-system. TheServiceMeshControlPlaneresource must be installed in a project that is separate from your microservices and Operators.These steps use
istio-systemas 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 Home
-
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.
- Click Create.
The Operator creates pods, services, and Service Mesh control plane components based on your configuration parameters. You can configure
ServiceMeshControlPlanesettings at a later time.
Verification
To verify the control plane installed correctly, 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.
1.9.1.2. 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 Container Platform as`cluster-admin`.
Procedure
Create a project named
istio-system.$ oc new-project istio-systemCreate a
ServiceMeshControlPlanefile namedistio-installation.yamlusing the following example. The version of the Service Mesh control plane determines the features available regardless of the version of the Operator.Example version 2.5 istio-installation.yaml
apiVersion: maistra.io/v2 kind: ServiceMeshControlPlane metadata: name: basic namespace: istio-system spec: version: v2.5 tracing: type: None sampling: 10000 addons: kiali: enabled: true name: kiali grafana: enabled: trueRun 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 -wYou 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 jaeger-67c75bd6dc-jv6k6 2/2 Running 0 65m kiali-6476c7656c-x5msp 1/1 Running 0 43m prometheus-58954b8d6b-m5std 2/2 Running 0 66m
1.9.1.3. 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 Container Platform as`cluster-admin`.
Procedure
Run the following command to verify the Service Mesh control plane installation, where
istio-systemis the namespace where you installed the Service Mesh control plane.$ oc get smcp -n istio-systemThe installation has finished successfully when the
STATUScolumn isComponentsReady.NAME READY STATUS PROFILES VERSION AGE basic 10/10 ComponentsReady ["default"] 2.5.2 66m