Deploy Control Plane
Based on the open source Istio project, Red Hat OpenShift Service Mesh adds a transparent layer on existing distributed applications without requiring any changes to the service code. You add Red Hat OpenShift Service Mesh support to services by deploying a special sidecar proxy to relevant services in the mesh that intercepts all network communication between microservices. You configure and manage the Service Mesh using the Service Mesh control plane features. To learn more about the OpenShift Service Mesh, review the OpenShift documentation.
Deploy Control Plane#
-
First, let's create a project (namespace) for us to deploy the service mesh control plane into. To do so, run the following command:
-
Next, let's deploy the service mesh control plane. To do so, run the following command:
cat << EOF | oc apply -f - apiVersion: maistra.io/v2 kind: ServiceMeshControlPlane metadata: name: basic namespace: istio-system spec: version: v2.2 security: identity: type: ThirdParty tracing: type: Jaeger sampling: 10000 addons: jaeger: name: jaeger install: storage: type: Memory kiali: enabled: true name: kiali grafana: enabled: true EOF
Warning
If you receive an error that is similar to the below error, ensure your operators have finished installing and try again:
-
Next, let's watch the progress of the service mesh control plane rollout. To do so, run run the following command:
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 jaeger-67c75bd6dc-jv6k6 2/2 Running 0 65m kiali-6476c7656c-x5msp 1/1 Running 0 43m prometheus-58954b8d6b-m5std 2/2 Running 0 66m wasm-cacher-basic-8c986c75-vj2cd 1/1 Running 0 65m
Once all the pods are running, hit Ctrl-C and proceed to the next step.
-
Next, let's verify that the service mesh control plane is successfully installed. To do so, run the following command:
The installation has finished successfully when the STATUS column saysComponentsReady
.Congratulations! You've successfully deployed the OpenShift Service Mesh control plane to your cluster.