| Edition | Deployment Type |
|---|---|
| Enterprise | Self-Managed, Hybrid, Cloud |
Supported Kubernetes Versions
| Kubernetes Version | Supported |
|---|---|
| 1.33.x | Yes |
| 1.34.x | Yes |
| 1.35.x | Yes |
Prerequisites
Install Tyk Stack with Helm Chart (PostgreSQL)
The following section provide instructions to install Redis, PostgreSQL, and Tyk stack with default configurations. It is intended for quick start only. For production, you should install and configure Redis and PostgreSQL separately.Instructions
-
Setup required credentials
First, you need to provide Tyk license, admin email and password, and API keys. We recommend to store them in secrets.
-
Install Redis (if you don’t already have Redis installed)
If you do not already have Redis installed, you may use these charts provided by Bitnami.
Follow the notes from the installation output to get connection details and password. The DNS name of your Redis as set by Bitnami is
tyk-redis-master.tyk.svc:6379(Tyk needs the name including the port) The Bitnami chart also creates a secrettyk-rediswhich stores the connection password inredis-password. We will make use of this secret in installation later. -
Install PostgreSQL (if you don’t already have PostgreSQL installed)
If you do not already have PostgreSQL installed, you may use these charts provided by Bitnami.
Follow the notes from the installation output to get connection details. We require the PostgreSQL connection string for Tyk installation. This can be stored in a secret and will be used in installation later.Ensure that you are installing PostgreSQL versions that are supported by Tyk. Please consult the list of supported versions that are compatible with Tyk.
-
Install Tyk
-
Done!
Now Tyk Dashboard should be accessible through service
dashboard-svc-tyk-tyk-dashboardat port3000. You can login to Dashboard using the admin email and password to start managing APIs. Tyk Gateway will be accessible through servicegateway-svc-tyk-tyk-gateway.tyk.svcat port8080. You are now ready to create an API. For the complete installation guide and configuration options, please see Tyk Stack Helm Chart.
Install Tyk Stack with Helm Chart (MongoDB)
The following section provide instructions to install Redis, MongoDB, and Tyk stack with default configurations. It is intended for quick start only. For production, you should install and configure Redis and MongoDB separately.If you want to enable Tyk Developer Portal, please use PostgreSQL. MongoDB is not supported in Developer Portal.
Instructions
-
Setup required credentials
First, you need to provide Tyk license, admin email and password, and API keys. We recommend to store them in secrets.
-
Install Redis (if you don’t have a Redis instance)
If you do not already have Redis installed, you may use these charts provided by Bitnami.
Follow the notes from the installation output to get connection details and password. The DNS name of your Redis as set by Bitnami is
tyk-redis-master.tyk.svc:6379(Tyk needs the name including the port) The Bitnami chart also creates a secrettyk-rediswhich stores the connection password inredis-password. We will make use of this secret in installation later.Please make sure you are installing Redis versions that are supported by Tyk. Please refer to Tyk docs to get list of supported versions. -
Install MongoDB (if you don’t have a MongoDB instance)
If you do not already have MongoDB installed, you may use these charts provided by Bitnami.
Please make sure you are installing MongoDB versions that are supported by Tyk. Please refer to Tyk docs to get list of supported versions.We require the MongoDB connection string for Tyk installation. You can store it in a secret and provide the secret in installation later.Bitnami MongoDB image is not supported on darwin/arm64 architecture.Ensure that you are installing MongoDB versions that are supported by Tyk. Please consult the list of supported versions that are compatible with Tyk.
-
Install Tyk
-
Done!
Now Tyk Dashboard should be accessible through service
dashboard-svc-tyk-tyk-dashboardat port3000. You can login to Dashboard using the admin email and password to start managing APIs. Tyk Gateway will be accessible through servicegateway-svc-tyk-tyk-gateway.tyk.svcat port8080. You are now ready to create an API. For the complete installation guide and configuration options, please see Tyk Stack Helm Chart.
Install Tyk Stack on Windows with Helm
Installing Tyk on Kubernetes requires a multi-node Tyk license. If you are evaluating Tyk on Kubernetes, contact us to obtain an temporary license.
You use this at your own risk. Tyk is not supported on the Windows platform. However you can test it as a proof of concept using our Pro Demo Docker installation.
Prerequisites
- MS Windows 10 Pro
- Tyk Helm Chart
- Docker Desktop for Windows running with a signed in Docker ID
- minikube
- Kubectl
- Helm
- Git for Windows
- Python for Windows
- PowerShell running as administrator
- Our Pro Demo Docker GitHub repo
- A free Tyk Self-Managed Developer license
- Microsoft Windows 10 Pro v1909 VM on Azure (Standard D2 v3 size)
- Docker Desktop for Windows 2.2.0.0 (Docker engine v19.03.5)
- helm v3.0.3
- minikube v1.7.1 (k8s v 1.17.2)
- kubectl v 1.17.0 (Note that kubectl is packaged with Docker Desktop for Windows, but the version may be incompatible with k8s)
Instructions
Now you have your prerequisites, follow the instructions from our Tyk Helm Chart page.Use Legacy Helm Chart
Tyk Helm chart is the preferred (and easiest) way to install Tyk Self-Managed on Kubernetes. The helm charttyk-helm/tyk-pro will install full Tyk platform with Tyk Manager, Tyk Gateways and Tyk Pump into your Kubernetes cluster. You can also choose to enable the installation of Tyk Operator (to manage your APIs in a declarative way).
Prerequisites
- Tyk License If you are evaluating Tyk on Kubernetes, contact us to obtain a temporary license.
-
Data stores
The following are required for a Tyk Self-Managed installation:
- Redis - Should be installed in the cluster or reachable from inside the cluster (for SaaS option). You can find instructions for a simple Redis installation bellow.
- MongoDB or SQL - Should be installed in the cluster or be reachable by the Tyk Manager (for SaaS option).
- Helm Installed Helm 3 Tyk Helm Chart is using Helm v3 version (i.e. not Helm v2).
Instructions
As well as our official Helm repo, you can also find it in ArtifactHub. Open in ArtifactHub If you are interested in contributing to our charts, suggesting changes, creating PRs or any other way, please use GitHub Tyk-helm-chart repo or contact us in Tyk Community forum or through our sales team.-
Add Tyk official Helm repo to your local Helm repository
-
Create namespace for your Tyk deployment
-
Getting the values.yaml of the chart
Before we proceed with installation of the chart you need to set some custom values.
To see what options are configurable on a chart and save that options to a custom values.yaml file run:
Installing the data stores
For Redis, MongoDB or SQL you can use these rather excellent charts provided by Bitnami- Redis
- MongoDB
- SQL
Please make sure you are installing Redis versions that are supported by Tyk. Please refer to Tyk docs to get list of supported versions.
tyk-redis-master.tyk.svc.cluster.local:6379 (Tyk needs the name including the port)
You can update them in your local values.yaml file under redis.addrs and redis.pass
Alternatively, you can use --set flag to set it in Tyk installation. For example --set redis.pass=$REDIS_PASSWORDQuick Redis and MongoDB PoC installation License setting For the Tyk Self-Managed chart we need to set the license key in your custom
values.yaml file under dash.license field
or use --set dash.license={YOUR-LICENSE_KEY} with the helm install command.
Tyk Self-Managed licensing allow for different numbers of Gateway nodes to connect to a single Dashboard instance.
To ensure that your Gateway pods will not scale beyond your license allowance, please ensure that the Gateway’s resource kind is Deployment
and the replica count to your license node limit. By default, the chart is configured to work with a single node license: gateway.kind=Deployment and gateway.replicaCount=1.
Please NoteThere may be intermittent issues on the new pods during the rolling update process, when the total number of online
gateway pods is more than the license limit with lower amounts of Licensed nodes.
Important Note regarding MongoDBThe
--wait argument is important to successfully complete the bootstrap of your Tyk Manager.pump.enabled to true in values.yaml file.
Alternatively, you can use --set pump.enabled=true while doing helm install.
Quick Pump configuration(Supported from tyk helm v0.10.0)
1. Mongo Pump
To configure mongo pump, do following changings in values.yaml file:
- Set
backendtomongo. - Set connection string in
mongo.mongoURL.
values.yaml file:
- Set
backendtopostgres. - Set connection string parameters in
postgressection.
portal.bootstrap: false in your local values.yaml file.
Using TLS
You can turn on the TLS option under the gateway section in your local values.yaml file which will make your Gateway
listen on port 443 and load up a dummy certificate. You can set your own default certificate by replacing the file in the certs/ folder.
Mounting Files
To mount files to any of the Tyk stack components, add the following to the mounts array in the section of that component.
For example:
gateway.sharding.enabled option. Once you do that you
will also need to set the gateway.sharding.tags field with the tags that you want that particular Gateway to load. (ex. tags: “external,ingress”.)
You can then add those tags to your APIs in the API Designer, under the Advanced Options tab, and
the Segment Tags (Node Segmentation) section in your Tyk Dashboard.
Check Tyk Gateway Sharding for more details.
Install More Tyk Components
Tyk Operator and Ingress
For a GitOps workflow used with a Tyk Self-Managed installation or setting the Tyk Gateway as a Kubernetes ingress controller, Tyk Operator enables you to manage API definitions, security policies and other Tyk features using Kubernetes manifest files. To get started go to Tyk Operator.Developer Portal
If you are deploying the Tyk Developer Portal, set the appropriate values under theenterprisePortal section in your values.yaml. Please visit Tyk Developer Portal installation for a step by step guide.
Note: Helm chart supports Enterprise Portal v1.2.0+
Self-managed Control Plane
If you are deploying the Tyk Control plane, a.k.a MDCB, for a Tyk Multi Data Center Bridge deployment then you set themdcb.enabled: true option in the local values.yaml to add of the MDCB component to your installation.
Check Tyk Control plane for more configuration details.
This setting enables multi-cluster, multi Data-Center API management from a single dashboard.
Tyk Identity Broker (TIB)
The Tyk Identity Broker (TIB) is a micro-service portal that provides a bridge between various Identity Management Systems such as LDAP, OpenID Connect providers and legacy Basic Authentication providers, to your Tyk installation. See TIB for more details. For SSO to Tyk Manager and Tyk developer portal purposes you do not need to install TIB, as its functionality is now part of the Tyk Manager. However, if you want to run it separately (as you used to before this merge) or if you need it as a broker for the Tyk Gateway you can do so. Once you have installed your Tyk Gateway and Tyk Manager, you can configure TIB by adding its configuration environment variables under thetib.extraEnvs section and updating the profile.json in your configs folder.
See our TIB GitHub repo.
Once you complete your modifications you can run the following command from the root of the repository to update your helm chart.
profiles.json definition in it. Please use tib.configMap.profiles value
to set the name of this ConfigMap (tyk-tib-profiles-conf by default).