tyk-data-plane
by Tyk
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:
| Value | Covers | Secret keys read |
|---|---|---|
global.remoteControlPlane.useSecretName | orgId, userApiKey, groupID | orgId, userApiKey, groupID |
global.remoteControlPlane.connectionStringSecretName | connectionString only | connectionString, 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
connectionStringSecretNameunset to use the literalglobal.remoteControlPlane.connectionString. - Set it to load
TYK_GW_SLAVEOPTIONS_CONNECTIONSTRINGviasecretKeyReffrom that Secret. The key defaults toconnectionString; override it withglobal.remoteControlPlane.connectionStringSecretKey. - The secret may be the same one referenced by
useSecretName, or a separate one. If you pointconnectionStringSecretNameat theuseSecretNamesecret, 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charttyk-data-plane is pinned at v5.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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