Skip to content

Gateway

Anker Tsaur edited this page Nov 8, 2021 · 1 revision

Overview

The titains supports to use the envoy as a L7 API ingress gateway to route your HTTP requests to your servces in the service mesh.

The gateway mode configuration is under titanSideCars.envoy.clusters.local-myapp.gateway:

gateway

This is used to declare how envoy sidecar to route HTTP requests to your application container within the same pod

Please reference (Cluster) for all available configuration and their default values.

Here are minimum and frequently used configurations:

gateway:
  enabled:                bool
  defaultBackend:         string
  minHealthRatio:         integer
  healthCoreClusters:     []string 

enabled

(bool) enable gateway mode

If not set, the gateway is disabled with default value set to false

defaultBackend

(enum) the default backend cluster on the mesh if no matched route is found.

If not set, the default value is set to "" which will result that the direct response code 404 with message "No matching route" are returned when no matched route is found.

minHealthRatio

(integer) Minimum persentage of each backend cluster needs to be health in order to return health state of the gateway.

If not set, the default value is 25

healthCoreClusters (ToDo)

([]string) a list of backend clusters, which contributes to the health state of the gateway.

If not set, all backend clusters are included.

Example

Enable gateway mode

titanSideCars:
  envoy:
    clusters:
      local-myapp:
        gateway:
          enabled: true