Service Mesh relies on service registration and discovery and often connects to various service registries. These registries may use different access protocols and data formats. The service registries page provides a central location to manage the metadata of these registries. By configuring registration and subscription settings during Sidecar injection, you can enable the Sidecar to inherit, enhance, or change its original registration and subscription behavior.
Add a service registry
-
Log on to the Service Mesh console.
-
In the navigation pane on the left, click Manage Service Registries.
-
Click Add Injection Center and configure the following parameters:
Parameter
Description
Name
The name of the service registry.
Type
Select the type of the service registry. Supported types are ZooKeeper, Eureka, SOFARegistry, Consul, and Nacos.
Address
Enter the IP address or domain name and the port number of the service registry.
Click Add More Addresses to add multiple registry addresses.
ImportantYou cannot add duplicate IP addresses for the same cluster within the same tenant.
Associated Cluster
Select the cluster where the service registry resides.
After you configure this setting, you can view the mapping between cluster applications and their registration information on the Service Catalog page. If a service registry is associated with all clusters or if the association is unclear, select Global Service Registry.
-
Click OK.
After the registry is added, you can select it when you configure Sidecar injection rules. For more information, see Sidecar injection rules.
Edit a service registry
-
In the service registry list, find the registry that you want to modify and click Edit.
-
After you make your changes, click OK.
If you change the address of a service registry, you must disable and then re-enable the corresponding Sidecar injection rule for the change to take effect.
Delete a service registry
-
In the service registry list, find the registry that you want to remove and click Delete.
-
Click OK.