Updated on 2023-11-24 GMT+08:00

Gateways

Application Mesh provides gateway management. Then, the Service forwards the traffic to the corresponding backend application instance.

Creating a Gateway

A gateway enables unified entry, traffic management, security, and service isolation. You can create a gateway as follows:

  1. Log in to the IEF console, and click Switch Instance on the Dashboard page to select a platinum service instance.
  2. In the navigation pane, choose Application Mesh > Service Gateway. On the page displayed, click Create Gateway in the upper right corner.
  3. Specify the gateway information.

    • Gateway Name: Enter a gateway name.
    • Application: Select the gateway application.
    • Port Configuration

      Port: Enter the port number used by the gateway to access backend applications.

      Protocol: Select the protocol used by the gateway to access backend applications. HTTP and HTTPS are supported. If you select HTTPS, configure Protocol Version, Certificate Secret, and Cipher Suite. If you select HTTP, configure domain names.

      Protocol Version: Select a protocol version.

      Certificate Secret: Select an SSL certificate. Public key files are public, and private key files are obtained by applying for certificates. Both are provided by yourself.

      You can add the SSL certificate secret required for configuring the HTTPS protocol only here.

      Cipher Suite: Select cipher suites contained in the SSL certificate and cipher suites supported by the client.

      Domain Names: Enter the domain names that can be accessed. Regular expression matching is supported. For example, * indicates all domain names.

    • HTTP Routes
      • URI Match Type: Prefix match, Exact match, and Regular expression are supported.
      • URI: Enter a URI.
      • Target Service: Select the Service to which the rule matches, that is, the Service to which the traffic from the URI is forwarded.
      • Service Access Port: Select the port used by the Service to access the application.
    Figure 1 Gateway configuration

  4. Click Create.

Updating a Gateway

You can update the port configuration and HTTP routing rules of the service gateway.

  1. Log in to the IEF console, and click Switch Instance on the Dashboard page to select a platinum service instance.
  2. In the navigation pane, choose Application Mesh > Service Gateway. Click Update at the row where the gateway resides.

    Figure 2 Updating a gateway

  3. Gateway information other than Gateway Name and Application can be updated in this step.

    Figure 3 Updating gateway information

  4. Click Update.

Configuring a Route

You can add multiple routes and configure multiple forwarding policies for a created gateway.

  1. Log in to the IEF console, and click Switch Instance on the Dashboard page to select a platinum service instance.
  2. In the navigation pane, choose Application Mesh > Service Gateway. Click Configure Route at the row where the gateway resides.
  3. Configure HTTP routes in the displayed dialog box, and click Yes. The Service of the virtual service is updated.

    Figure 4 Configuring a route

Deleting a Gateway

  1. Log in to the IEF console, and click Switch Instance on the Dashboard page to select a platinum service instance.
  2. In the navigation pane, choose Application Mesh > Service Gateway. Click Delete at the row where the gateway to be deleted resides, or select the gateway and click Delete above the gateway list.

    Figure 5 Deleting a gateway

  3. In the displayed dialog box, enter DELETE in the text box and click Yes.