Add Service
This document will guide you through creating a ServiceMesh service or OpenTelemetry service.
TOC
Prerequisites
- The current namespace has been added to the service mesh. Please refer to Add Namespaces for instructions.
- The workload type is a Deployment, and there is a one-to-one association with a Service.
Add ServiceMesh service
Steps
-
In the left navigation bar, click Service List.
-
Click Add Service.
-
Refer to the following instructions to configure the relevant parameters.
-
Click Add.
After the service is successfully added:
-
(Under the Service Mesh governance method) A service with the same name as the Service will be generated in the service list.
-
The platform will automatically update the Pod template parameters of the service's Deployment, adding or updating the
app: <service name>label.
It is recommended not to modify these labels directly in the YAML file. -
Restart the service's Deployment.
During the restart process, as long as at least one Pod of the Deployment is in the Running state, the service is Online; otherwise, the service is Offline.
-
Add OpenTelemetry Service
Steps
-
In the left navigation bar, click Service List.
-
Click Add Service. In the governance method popup, select OpenTelemetry.
-
Refer to the following instructions to configure the relevant parameters.
-
Click Add.
After the service is successfully added:
-
Under OpenTelemetry or Composite governance modes, the service (Java 8+) will by default be injected with the OpenTelemetry Java Agent, enabling the platform to non-intrusively collect service telemetry data and JVM monitoring data.
-
The
opentelemetry-operatorcomponent will intercept the creation of service Pods and add the Java Agent configuration. -
Restart the service's Deployment.
During the restart process, as long as at least one Pod of the Deployment is in the Running state, the service is Online; otherwise, the service is Offline.
-