Tyk v2.2 Documentation Components

  1. Home
  2. Tyk v2.2 Documentation Components
  3. SD: Linkerd Example

SD: Linkerd Example

Note: This configuration is a Tyk Community Contribution.

To integrate Tyk with Linkerd perform the following:

Configure Linkerd

For integrating with Linkerd, you need to add the following configuration to your linkerd.yaml file, located in the config/ directory:

routers:
- protocol: http
  identifier:
    kind: io.l5d.header.token
    header: Custom-Header

Configure Tyk

  1. Select your API from the System Management > APIs section and click Edit.
  2. From the Core Settings tab, set the Target URL to the Linkerd http server host:port address.
  3. From the Endpoint Designer tab click Global Version Settings enter Custom-Header in the Add this header: field and the value of the Linkerd app-id in the Header value field.
  4. Click Update to save your changes.

This is needed since Tyk appends a “Host” header when proxying the request and the “Host” header is also the default header expected by Linkerd.

For further reading, visit: