Configuring Service Mesh for production
When you are ready to move from a basic installation to production, you must configure your control plane, tracing, and security certificates to meet production requirements.
-
Install and configure Red Hat OpenShift Service Mesh.
-
Test your configuration in a staging environment.
Configuring your ServiceMeshControlPlane resource for production
If you have installed a basic ServiceMeshControlPlane resource to test Service Mesh, you must configure it to production specification before you use Red Hat OpenShift Service Mesh in production.
You cannot change the metadata.name field of an existing ServiceMeshControlPlane resource. For production deployments, you must customize the default template.
-
Configure the Distributed Tracing Platform (Jaeger) for production.
-
Edit the
ServiceMeshControlPlaneresource to use theproductiondeployment strategy, by settingspec.addons.jaeger.install.storage.typetoElasticsearchand specify additional configuration options underinstall. You can create and configure your Jaeger instance and setspec.addons.jaeger.nameto the name of the Jaeger instance.Default Jaeger parameters including ElasticsearchapiVersion: maistra.io/v2 kind: ServiceMeshControlPlane metadata: name: basic spec: version: v2.6 tracing: sampling: 100 type: Jaeger addons: jaeger: name: MyJaeger install: storage: type: Elasticsearch ingress: enabled: true runtime: components: tracing.jaeger.elasticsearch: # only supports resources and image name container: resources: {} -
Configure the sampling rate for production. For more information, see the Performance and scalability section.
-
-
Ensure your security certificates are production ready by installing security certificates from an external certificate authority. For more information, see the Security section.
-
Enter the following command to verify that the
ServiceMeshControlPlaneresource updated properly. In this example,basicis the name of theServiceMeshControlPlaneresource.$ oc get smcp basic -o yaml
Additional resources
-
For more information about tuning Service Mesh for performance, see Performance and scalability.