Article Directory
This is one verified in OpenShift 4.2.x in a more complete OpenShift Service Mesh tutorial.
Installation Service Mesh Operator
Note: OpenShift Service Mesh Operator will automatically install when Elasticsearch Operator, Jaeger Operator, Kiali Operator, thus requiring only OpenShift Service Mesh Operator to install.
- Administrator login OpenShift 4 console, enter the Catalog in Aministrator view -> Operator Hub.
- After finding OpenShift Service Mesh enter, click on the Install button on the right slide description page.
- Click the Subscribe button in the Create Operator Subscription page.
- The following will see later Elasticsearch Operator, Jaeger Operator, Kiali Operator and OpenShift Service Mesh Operator already Copied state, indicating Operator has been successfully installed.
Configuration Service Mesh Operating Environment
Preparation of project resources
- Create a project run Istio
$ oc new-project my-istio-system
- Tutorial obtain the relevant code
$ git clone https://github.com/liuxiaoyu-git/service-mesh.git
Creating Service Mesh Control Plane
- Go Go Service Mesh Operator in the Installed Operator.
- Enter the Create Instance on Istio Service Mesh Control Plane.
- Copy the install / basic-install.yml file within the text area, and then click the Create button.
- Execute command to view the progress of creating a progress, after the completion of Pod 12 will run in my-istio-system project.
$ watch oc get pods -n my-istio-system
Creating Service Mesh Member Roll
All items in the Member Roll Service Mesh resources is being OpenShift nanotubes, and thus make use of my-istio-app item behind the associated Service Mesh Member Roll.
- Check install / memberroll.yml documents confirming members included my-istio-app.
apiVersion: maistra.io/v1
kind: ServiceMeshMemberRoll
metadata:
name: default
spec:
members:
- my-istio-app
- Run command to create ServiceMeshMemberRoll object.
$ oc apply -f install/memberroll.yml -n my-istio-system