Creating an Ingress Gateway Route Table

Create an ingress gateway route table for an ingress gateway in Service Mesh.

    1. Open the navigation menu and click Developer Services. Under Containers & Artifacts, click Service Mesh.
    2. Click Service Meshes.
    3. On the Service Mesh page, from the list of compartments on the left side, select a compartment.
    4. From the list of meshes, click the mesh name for which you want to create an ingress gateway route table.
    5. On the details page of the mesh, under Resources, click Ingress Gateways.
    6. In the Ingress Gateways table, click the ingress gateway for which you want to create a route table.
    7. On the ingress gateway details page, under Route Tables, click Create route table.
    8. In the Create route table panel, provide the following details:
      • Name: A name for the route table. The name must start with a letter or underscore, followed by letters, numbers, hyphens, or underscores. Length can be 1–255 characters. Avoid entering confidential information.
      • Description: (Optional) A description for the ingress gateway route table. Avoid entering confidential information.
      • Priority: Sets the route table priority from 1 to 1000. The default value is 500. Lower numbers are a higher priority. At the same priority, route tables are prioritized based on the time they're created with the most recent route table taking highest priority.
      • Compartment: The compartment in which you want to create the ingress gateway route table. The default compartment is the one you selected previously, but you can select any compartment that you have permission to work in.
      • Route Rule: In this section, provide the following details:
        • Protocol: Select HTTP or TCP.

          If you select HTTP, the following settings are available.

        • Request Timeout (in milliseconds): The maximum duration in milliseconds for the upstream service to respond to a request. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP-based route rules, and disabled (no timeout) when 'isGrpc' is true. The value 0 (zero) disables the timeout. For streaming responses from the upstream service, consider either keeping the timeout disabled or set a sufficiently high value.
        • Path: A path to this route. For example, /mypath.
        • Path type: The type of path provided. The value defaults to Prefix. When set to Prefix, the rule treats the path as a prefix to an endpoint.
        • gRPC: When enabled, the rule checks that the content-type header has an application/grpc or one of the various application/grpc+ values.
        • Path Rewrite: If selected, the rule rewrites the matched path prefix to '/' before being directed to the target virtual deployment.
        • Host Rewrite: If selected, the rule rewrites the host name to the target virtual deployment's DNS host name.
        • Ingress Gateway Host: Select the name of the ingress gateway host that this route applies to.
        • Ingress Gateway Port: Select the port of the ingress gateway host listener. Leave the field empty to match all ports for the host.
        • Destinations: To pick the destination virtual service for this route, provide the following details:
          • Virtual Service: Select a virtual service from this mesh.
          • Port: Select a port for this route.
          • Weight: Because the rule allows only one destination, the value defaults to, and must be 100.
        • To add a rule, click + Add another rule.
    9. (Optional) To add tags to the ingress gateway, click show advanced options. For more information about tagging, see Resource Tags.
    10. Click Create route table.
  • To create an ingress gateway route table, use the service-mesh resource with the ingress-gateway-route-table option.

    oci service-mesh ingress-gateway-route-table create --from-json <json-file-name>

    Example:

    oci service-mesh ingress-gateway-route-table create --from-json file://create.json

    To see what operations are available for ingress-gateway-route-table create use:

    oci service-mesh ingress-gateway-route-table create -h

    To generate a sample JSON file for ingress-gateway-route-table create use:

    oci service-mesh ingress-gateway-route-table create --generate-full-command-json-input
  • Use the CreateIngressGatewayRouteTable operation to create an ingress gateway route table.