Add container services, including ACK and ACK Serverless cluster, as service sources so that AI Gateway can dynamically discover your backend services.
Configuration
-
If a service source becomes invalid, remove its configuration. Stale configurations can cause stability issues, such as delays in synchronizing service information from other sources.
-
You can add a service that uses a DNS domain name or a fixed address without configuring a service source. For more information, see Create a service.
-
When you add an ACK container service, the gateway monitors the services and endpoints of the ACK cluster. If you configure HTTPS requests by using Kubernetes Ingress resources, the gateway also monitors cluster secrets for HTTPS certificate information.
Procedure
Log on to the AI Gateway console.
In the navigation pane on the left, choose Instance. In the top menu bar, select a region.
On the Instance page, click the target instance ID.
In the navigation pane on the left, choose Service, then click the Source tab.
-
Click Create Source. In the Create Source panel, configure the parameters, and then click OK.
Parameter
Description
ACK/ACS/ACK Serverless cluster
Select the cluster where your backend services are deployed. If no ACK, ACS, or ACK Serverless cluster exists in the current VPC, click Create Cluster to create one.
NoteWhen you create a gateway, select the same VPC as the backend cluster. This allows the gateway to automatically discover the cluster when you add the service source.
ImportantThe ACK cluster version must be 1.18 or later. If the cluster version is earlier than 1.18, upgrade the cluster before you add it as a service source. Version 1.28 or later is recommended.
Security group authorization
Container cluster node pools are protected by security groups. To allow external access to services in the cluster, open the required ports in the security group.
To modify security group rules, see Set security group rules.
Verify the results
On the Source tab, verify that the new service source is listed.