Add and manage service sources for your Cloud-native API Gateway instance. Supported source types: container services (ACK, ACS, and ACK Serverless clusters) and Microservices Engine (MSE) Nacos registries.
Prerequisites
-
You have created a gateway instance.
-
You have created an ACK managed cluster or an MSE Nacos instance.
Notes
-
If a service source becomes invalid, delete it manually. Invalid sources can cause synchronization failures for other service sources.
-
Services with a DNS domain name or fixed IP address do not require a service source. Create a service.
-
When you add an ACK cluster as a service source, the gateway monitors Service and Endpoints objects for service and endpoint information. If you configure HTTPS through a K8s Ingress, the gateway also monitors Secret objects for certificate information.
Create a service source
Log on to the API Gateway console.
In the left-side navigation pane, click . In the top navigation bar, select a region.
On the Instance page, click the target instance ID.
In the left-side navigation pane, click Service. Then, click the Source tab.
-
Click Create Source. In the Create Source panel, configure the parameters and click OK.
Container service
Parameter
Description
ACK/ACS/ACK Serverless Cluster
Select the cluster where the backend service is deployed.
Important-
If no ACK, ACS, or ACK Serverless cluster exists in the current VPC, create an ACK managed cluster first.
-
To add a service source from another VPC, create a gateway instance in that VPC first, then select the cluster.
-
The ACK cluster must run version 1.18 or later (1.28 or later recommended). Upgrade the cluster before adding it as a service source if needed.
Security Group Authorizations
The container cluster node pool has a security group. Open the required service ports to allow external access.
Modify security group rules as needed. Set security group rules.
MSE Nacos
Parameter
Description
Nacos Instance
Select an MSE Nacos instance.
Important-
If no MSE Nacos instance exists in the current VPC, create an MSE Nacos instance first.
-
To add a service source from another VPC, create a gateway instance in that VPC first, then select the MSE Nacos instance.
-
Only MSE Nacos instances with
MCPEnabled = trueare listed. Change this on the MSE Nacos parameter settings page.
-
-
On the Source tab, verify that the service source appears in the list.
Delete a service source
Log on to the API Gateway console.
In the left-side navigation pane, click . In the top navigation bar, select a region.
On the Instance page, click the target instance ID.
In the left-side navigation pane, click Service. Then, click the Source tab.
-
Find the service source that you want to delete and click Delete in the Actions column.
-
In the Confirm Delete dialog box, click OK.