tyk-stack

by Tyk

Helm chartv5.5.0

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:

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, or USER 0. For example, docker.tyk.io/tyk-gateway/tyk-gateway:v5.9.1 runs as USER 0. See the warning on gateway.image.tag in tyk-oss/values.yaml.
  • Images with a symbolic USER (for example the distroless nonroot user). kubelet cannot verify a non-numeric user against runAsNonRoot and rejects the pod with non-numeric user (nonroot), cannot verify user is non-root. Tyk gateway v5.13.0-rc1 was affected by this; the released v5.13.1 is 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.

ChartDefault gateway imageChanged this release?
tyk-ossdocker.tyk.io/tyk-gateway/tyk-gateway:v5.13.1Yes — bumped from v5.9.1, which ran as USER 0
tyk-stacktykio/tyk-gateway-ee:v5.13.1No
tyk-control-planetykio/tyk-gateway-ee:v5.13.1No
tyk-data-planetykio/tyk-gateway-ee:v5.13.1No

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:

ComponentPod-level pathContainer-level path
tyk-gatewaytyk-gateway.gateway.securityContexttyk-gateway.gateway.containerSecurityContext
tyk-gateway init container—tyk-gateway.gateway.initContainers.setupDirectories.securityContext
tyk-dashboardtyk-dashboard.dashboard.securityContexttyk-dashboard.dashboard.containerSecurityContext
tyk-pumptyk-pump.pump.securityContexttyk-pump.pump.containerSecurityContext
tyk-mdcbtyk-mdcb.mdcb.podSecurityContexttyk-mdcb.mdcb.containerSecurityContext
tyk-operatortyk-operator.managerPodSecurityContexttyk-operator.securityContext
tyk-dev-portaltyk-dev-portal.securityContexttyk-dev-portal.containerSecurityContext
tyk-dev-portal bootstrap Jobtyk-dev-portal.bootstrapJob.securityContexttyk-dev-portal.bootstrapJob.containerSecurityContext
tyk-bootstrap Jobstyk-bootstrap.bootstrap.securityContexttyk-bootstrap.bootstrap.containerSecurityContext
helm test podtests.securityContexttests.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-directories init container falls back to tyk-gateway.gateway.containerSecurityContext when its own block is disabled or empty. Setting initContainers.setupDirectories.securityContext.enabled: false on its own therefore does not omit the block — it renders the main container's context instead. To omit it entirely, disable gateway.containerSecurityContext as 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charttyk-stack 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