An Istio gateway is a load balancer at the edge of the service mesh that manages inbound and outbound HTTP or TCP traffic. This topic describes how to create, modify, and delete Istio gateways.
Prerequisites
An ASM instance is created. For more information, see Create an ASM instance.
Create an Istio gateway
Method 1: Create an Istio gateway using the console
-
Log on to the ASM console. In the left-side navigation pane, choose .
-
On the Mesh Management page, click the name of the ASM instance. In the left-side navigation pane, choose . On the page that appears, click Create.
-
On the Create page, configure the parameters and click Create.
For more information about the parameters, see Gateway CRD instructions.
Example configuration: Set Namespace to
defaultand Name tobookinfo-gateway. For Gateway Workload, select Custom Label Selector, and set the label key toistioand the label value toingressgateway. In the Services section, set Name tohttp, Port to80, Protocol to HTTP, and Hosts to*.
Method 2: Create an Istio gateway using YAML
-
Log on to the ASM console. In the left-side navigation pane, choose .
-
On the Mesh Management page, click the name of the ASM instance. In the left-side navigation pane, choose . On the page that appears, click Create from YAML.
-
On the Create page, select a Namespaces and a Scenario Template. In the YAML editor, modify the configuration as needed, and then click Create.
The following example defines an Istio gateway that exposes ports 80, 9080, 443, and 9443. This rule applies to pods with the
istio: ingressgatewaylabel. For more information, see Gateway CRD instructions.
Related operations
On the Gateway page, you can perform the following operations on an Istio gateway in the Actions column.
-
To view or modify the YAML, click View YAML for the target Istio gateway. In the Edit dialog box, modify the configuration as needed and click OK.
-
To manage versions, click Version for the target Istio gateway. In the Version dialog box, click Rollback. For more information, see Roll back to a previous version of an Istio resource.
-
To delete an Istio gateway, click Delete for the target Istio gateway. In the Confirm dialog box, click OK.
ImportantDeleting an Istio gateway removes its associated routing rules, which may cause service interruptions. Proceed with caution.