tyk-stack
by Tyk
A Helm chart for deploying Tyk Self Managed stack on a cluster. It will deploy all required Tyk components with the settings provided in the values.yaml file. It includes: Tyk Gateway, an open source Enterprise API Gateway (supporting REST, GraphQL, TCP and gRPC protocols). Tyk Pump, an analytics purger that moves the data generated by your Tyk nodes to any back-end. Tyk Dashboard, a license based component that provides GUI management interface and analytics platform for Tyk. Tyk Developer Enterprise Portal, a full-fledged CMS-like system for API providers to publish, monetise and drive the adoption of APIs.
About this chart
Tyk Stack
This Helm chart deploys the Tyk Stack (Tyk Self-managed) in your Kubernetes cluster. For detailed documentation and a quick start guide, please visit the Tyk Official Docs site.
Installation
To install the Tyk Stack using this Helm chart, follow the instructions provided in the Tyk Official Docs:
- Tyk Stack Installation
- Quick Start with Helm Chart and PostgreSQL
- Quick Start with Helm Chart and MongoDB
Configuration
For configuration options and customization, refer to the Tyk Official Docs site.
Upgrade notes
These notes apply to all of the umbrella charts in this repository (tyk-stack, tyk-control-plane,
tyk-data-plane, tyk-oss) and to the component charts they pull in.
Container runAsUser defaults removed — pinned image tags may fail to start
The runAsUser: 1000 defaults have been removed from both the pod-level securityContext and the
container-level containerSecurityContext blocks, so that platforms such as OpenShift can assign a UID from
the namespace's allocated range via a Security Context Constraint. runAsNonRoot: true and fsGroup are
retained.
With no runAsUser, kubelet falls back to the USER directive baked into the image to decide whether the
container will run as root. Every image these charts default to carries a numeric USER of 65532, so a
default install is unaffected. The risk applies only if you pin an image tag of your own.
If you pin a tag whose image lacks a numeric USER, the pod fails kubelet admission on helm upgrade with:
CreateContainerConfigError: container has runAsNonRoot and image will run as root
Two cases fail:
- Images with no
USER, orUSER 0. For example,docker.tyk.io/tyk-gateway/tyk-gateway:v5.9.1runs asUSER 0. See the warning ongateway.image.tagintyk-oss/values.yaml. - Images with a symbolic
USER(for example the distrolessnonrootuser). kubelet cannot verify a non-numeric user againstrunAsNonRootand rejects the pod withnon-numeric user (nonroot), cannot verify user is non-root. Tyk gatewayv5.13.0-rc1was affected by this; the releasedv5.13.1is not.
Which default image tags changed in this release
Only tyk-oss changes a default image tag. The other umbrella charts were already on images with a numeric
USER and are unchanged.
| Chart | Default gateway image | Changed this release? |
|---|---|---|
tyk-oss | docker.tyk.io/tyk-gateway/tyk-gateway:v5.13.1 | Yes — bumped from v5.9.1, which ran as USER 0 |
tyk-stack | tykio/tyk-gateway-ee:v5.13.1 | No |
tyk-control-plane | tykio/tyk-gateway-ee:v5.13.1 | No |
tyk-data-plane | tykio/tyk-gateway-ee:v5.13.1 | No |
No other component's default image tag changes in this release. The dashboard (tykio/tyk-dashboard:v5.13.1),
pump (tykio/tyk-pump-docker-pub:v1.16.0) and MDCB (tykio/tyk-mdcb-docker:v2.12.0) defaults all already ran
as USER 65532.
If you are upgrading tyk-oss and had not overridden gateway.image.tag, your gateway moves from v5.9.1
to v5.13.1 — review that version bump as you would any other. If you had pinned v5.9.1 (or any other
pre-v5.13 tag) explicitly, your pin is preserved and the gateway pod will fail to start until you act.
If you pin your own image tag
Check the image's USER before upgrading. Anything non-numeric or 0 needs action:
$ crane config docker.tyk.io/tyk-gateway/tyk-gateway:v5.13.1 | jq -r '.config.User'
65532
$ crane config docker.tyk.io/tyk-gateway/tyk-gateway:v5.9.1 | jq -r '.config.User'
0
(docker image inspect --format '{{.Config.User}}' <image> works too, for images you have pulled locally.)
If the value is numeric and non-zero, no action is needed. Otherwise either move to a tag with a numeric
USER, or restore an explicit runAsUser on the affected component:
tyk-gateway:
gateway:
containerSecurityContext:
runAsUser: 1000
securityContext.enabled: false opt-out
Every pod-level and container-level security context block now accepts an enabled flag. Setting
enabled: false omits the entire rendered block from the manifest, letting the cluster inject its own defaults —
this is the supported path for OpenShift, where the SCC assigns UID, GID and fsGroup. Setting
securityContext: {} is not sufficient, because Helm deep-merges the chart's defaults back in. The enabled
key itself is never rendered into the manifest.
Each block is scoped independently, so you must disable each one you want omitted. The value paths are not
uniform across the component charts — note in particular that MDCB uses podSecurityContext for the pod level,
and the operator uses managerPodSecurityContext for the pod level and plain securityContext for the
container level:
| Component | Pod-level path | Container-level path |
|---|---|---|
tyk-gateway | tyk-gateway.gateway.securityContext | tyk-gateway.gateway.containerSecurityContext |
tyk-gateway init container | — | tyk-gateway.gateway.initContainers.setupDirectories.securityContext |
tyk-dashboard | tyk-dashboard.dashboard.securityContext | tyk-dashboard.dashboard.containerSecurityContext |
tyk-pump | tyk-pump.pump.securityContext | tyk-pump.pump.containerSecurityContext |
tyk-mdcb | tyk-mdcb.mdcb.podSecurityContext | tyk-mdcb.mdcb.containerSecurityContext |
tyk-operator | tyk-operator.managerPodSecurityContext | tyk-operator.securityContext |
tyk-dev-portal | tyk-dev-portal.securityContext | tyk-dev-portal.containerSecurityContext |
tyk-dev-portal bootstrap Job | tyk-dev-portal.bootstrapJob.securityContext | tyk-dev-portal.bootstrapJob.containerSecurityContext |
tyk-bootstrap Jobs | tyk-bootstrap.bootstrap.securityContext | tyk-bootstrap.bootstrap.containerSecurityContext |
helm test pod | tests.securityContext | tests.containerSecurityContext |
The tests.* keys sit at the umbrella chart root, not under a component. The helm test pod pins
runAsUser: 1000, which is outside the allocated range on OpenShift, so helm test needs both tests blocks
disabled there. (tyk-control-plane ships no test pod, so it has no tests block.)
tyk-mdcb renders no security context at all by default (both blocks ship empty), and
tyk-operator.securityContext is {} by default, so those need no opt-out unless you have added fields to them.
tyk-gateway:
gateway:
securityContext:
enabled: false
containerSecurityContext:
enabled: false
initContainers:
setupDirectories:
securityContext:
enabled: false
Note on the gateway init container. The
setup-directoriesinit container falls back totyk-gateway.gateway.containerSecurityContextwhen its own block is disabled or empty. SettinginitContainers.setupDirectories.securityContext.enabled: falseon its own therefore does not omit the block — it renders the main container's context instead. To omit it entirely, disablegateway.containerSecurityContextas well, as in the example above.
Deploy tyk-stack with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tyk-stack 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-stack 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