tyk-data-plane

by Tyk

Helm chartv5.5.0

A Helm chart for deploying a Tyk data plane for Tyk Self Managed MDCB or Tyk Cloud users. It will deploy the data plane components that remotely connect to a MDCB control plane. It includes the Tyk Gateway, an open source Enterprise API Gateway, supporting REST, GraphQL, TCP and gRPC protocols; and Tyk Pump, an analytics purger that moves the data generated by your Tyk gateways to any back-end. Furthermore, it has all the required modifications to easily connect to Tyk Cloud or Multi Data Center (MDCB) control plane.

About this chart

Tyk Data Plane

This Helm chart deploys the Tyk Data Plane in your Kubernetes cluster. For detailed documentation and a quick start guide, please visit the Tyk Official Docs site.

Installation

To install the Tyk Data Plane using this Helm chart, follow the instructions provided in the Tyk Official Docs:

Configuration

For configuration options and customization, refer to the Tyk Official Docs site.

Upgrade notes

The runAsUser defaults have been removed from the pod- and container-level security contexts while runAsNonRoot: true is retained, so kubelet now relies on the image's USER directive.

This chart's default images are unchanged (the gateway stays on tykio/tyk-gateway-ee:v5.13.1, which runs as USER 65532), so a default install is unaffected. If you pin your own image tags, a tag whose image has no numeric USER will fail kubelet admission on helm upgrade. See Upgrade notes for how to check your image, and for the securityContext.enabled: false opt-out for OpenShift.

Storing remote control plane credentials in Kubernetes Secrets

The remote control plane settings under global.remoteControlPlane can be supplied from externally managed k8s Secrets instead of plaintext values. There are two independent mechanisms:

ValueCoversSecret keys read
global.remoteControlPlane.useSecretNameorgId, userApiKey, groupIDorgId, userApiKey, groupID
global.remoteControlPlane.connectionStringSecretNameconnectionString onlyconnectionString, or the key named by connectionStringSecretKey

connectionStringSecretName is independent of useSecretName — setting one does not imply the other. This is deliberate: an install that stores its credentials in a secret while keeping a literal connectionString in values.yaml is a supported (and previously documented) setup, and must keep working across helm upgrade.

  • Leave connectionStringSecretName unset to use the literal global.remoteControlPlane.connectionString.
  • Set it to load TYK_GW_SLAVEOPTIONS_CONNECTIONSTRING via secretKeyRef from that Secret. The key defaults to connectionString; override it with global.remoteControlPlane.connectionStringSecretKey.
  • The secret may be the same one referenced by useSecretName, or a separate one. If you point connectionStringSecretName at the useSecretName secret, that secret must also contain the connection string key.
global:
  remoteControlPlane:
    enabled: true
    # orgId / userApiKey / groupID come from this secret
    useSecretName: tyk-data-plane-credentials
    # connectionString comes from this one, under key "connectionString"
    connectionStringSecretName: tyk-mdcb-connection
    # connectionStringSecretKey: connectionString

Deploy tyk-data-plane with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tyk-data-plane on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charttyk-data-plane is pinned at v5.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply