6379
port opentyk.conf
configuration filegateway-svc-tyk-oss-tyk-gateway
at port 8080
.
The following guides provide instructions to install Redis and Tyk Open Source with default configurations. It is intended for a quick start only. For production, you should install and configure Redis separately.
gateway-svc-tyk-oss-tyk-gateway
at port 8080
.
You are now ready to create an API.
For the complete installation guide and configuration options, please see Tyk OSS Helm Chart.
tyk-headless
chart is deprecated. Please use our Tyk Chart for Tyk Open Source at tyk-oss instead.We recommend all users migrate to the tyk-oss
Chart. Please review the Configuration section of the new helm chart and cross-check with your existing configurations while planning for migration.values.yaml
file run:
tyk-redis-master.tyk.svc.cluster.local:6379
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 the Tyk installation. For example --set redis.pass=$REDIS_PASSWORD
For evaluation only: Use simple-redis chart
Deployment
with ReplicaCount
as 1. You should not update this part because multiple instances of OSS gateways won’t sync the API Definition.
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 the Mongo pump, make the following changes in values.yaml
file:
backend
to mongo
.mongo.mongoURL
.values.yaml
file:
backend
to postgres
.postgres
section.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.
8080
is open: this is used in this guide for Gateway traffic (the API traffic to be proxied).cd
into the directoryhosts.yml
file to update SSH variables to your server(s). For more information about the host file, visit the [Ansible inventory documentation] (https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html)
tyk-ce
-t redis
. However, Redis is a requirement and needs to be installed for the gateway to run.
Distribution | Version | Supported |
---|---|---|
Amazon Linux | 2 | ✅ |
CentOS | 8 | ✅ |
CentOS | 7 | ✅ |
Debian | 10 | ✅ |
Debian | 9 | ✅ |
RHEL | 8 | ✅ |
RHEL | 7 | ✅ |
Ubuntu | 21 | ✅ |
Ubuntu | 20 | ✅ |
Ubuntu | 18 | ✅ |
Ubuntu | 16 | ✅ |
vars/tyk.yaml
Variable | Default | Comments |
---|---|---|
secrets.APISecret | 352d20ee67be67f6340b4c0605b044b7 | API secret |
secrets.AdminSecret | 12345 | Admin secret |
redis.host | Redis server host if different than the host url | |
redis.port | 6379 | Redis server listening port |
redis.pass | Redis server password | |
redis.enableCluster | false | Enable if Redis is running in cluster mode |
redis.storage.database | 0 | Redis server database |
redis.tls | false | Enable if Redis connection is secured with SSL |
gateway.service.host | Gateway server host if different than the host url | |
gateway.service.port | 8080 | Gateway server listening port |
gateway.service.proto | http | Gateway server protocol |
gateway.service.tls | false | Set to true to enable SSL connections |
gateway.sharding.enabled | false | Set to true to enable filtering (sharding) of APIs |
gateway.sharding.tags | The tags to use when filtering (sharding) Tyk Gateway nodes. Tags are processed as OR operations. If you include a non-filter tag (e.g. an identifier such as node-id-1 , this will become available to your Dashboard analytics) |
vars/redis.yaml
Variable | Default | Comments |
---|---|---|
redis_bind_interface | 0.0.0.0 | Binding address of Redis |
Distribution | Version | Supported |
---|---|---|
Debian | 11 | ✅ |
Ubuntu | 20 | ✅ |
Ubuntu | 18 | ✅ |
Ubuntu | 16 | ✅ |
8080
is open: this is used in this guide for Gateway traffic (the API traffic to be proxied).<hostname>
for --redishost=<hostname>
with your own value to run this script.--listenport=8080
: Listen on port 8080
for API traffic.--redishost=<hostname>
: The hostname for Redis.--redisport=6379
: Use port 6379
for Redis.--domain=""
: Do not filter domains for the Gateway, see the note on domains below for more about this.Distribution | Version | Supported |
---|---|---|
Debian | 11 | ✅ |
Ubuntu | 20 | ✅ |
Ubuntu | 18 | ✅ |
Ubuntu | 16 | ✅ |
8080
is open: this is used in this guide for Gateway traffic (the API traffic to be proxied).cd
into the directoryhosts.yml
file to update ssh variables to your server(s). You can learn more about the hosts file here
tyk-gateway-ce
tyk-gateway-ce
: Tyk Gateway with CE config
-redis
: Redis database as Tyk Gateway dependencyvars/tyk.yaml
Variable | Default | Comments |
---|---|---|
secrets.APISecret | 352d20ee67be67f6340b4c0605b044b7 | API secret |
secrets.AdminSecret | 12345 | Admin secret |
redis.host | Redis server host if different than the hosts url | |
redis.port | 6379 | Redis server listening port |
redis.pass | Redis server password | |
redis.enableCluster | false | Enable if redis is running in cluster mode |
redis.storage.database | 0 | Redis server database |
redis.tls | false | Enable if redis connection is secured with SSL |
gateway.service.host | Gateway server host if different than the hosts url | |
gateway.service.port | 8080 | Gateway server listening port |
gateway.service.proto | http | Gateway server protocol |
gateway.service.tls | false | Set to true to enable SSL connections |
gateway.sharding.enabled | false | Set to true to enable filtering (sharding) of APIs |
gateway.sharding.tags | The tags to use when filtering (sharding) Tyk Gateway nodes. Tags are processed as OR operations. If you include a non-filter tag (e.g. an identifier such as node-id-1 , this will become available to your Dashboard analytics) |
vars/redis.yaml
Variable | Default | Comments |
---|---|---|
redis_bind_interface | 0.0.0.0 | Binding address of Redis |
Distribution | Version | Supported |
---|---|---|
CentOS | 8 | ✅ |
CentOS | 7 | ✅ |
RHEL | 8 | ✅ |
RHEL | 7 | ✅ |
8080
is open for Gateway traffic (the API traffic to be proxied)./etc/yum.repos.d/tyk_tyk-gateway.repo
that contains the repository configuration settings for YUM repositories tyk_tyk-gateway
and tyk_tyk-gateway-source
used to download packages from the specified URLs. This includes GPG key verification and SSL settings, on a Linux system.
Make sure to replace el
and 8
in the config below with your Linux distribution and version:
<hostname>
in --redishost=<hostname>
with your own value to run this script.--listenport=8080
: Listen on port 8080
for API traffic.--redishost=<hostname>
: The hostname for Redis.--redisport=6379
: Use port 6379
for Redis.--domain=""
: Do not filter domains for the Gateway, see the note on domains below for more about this.Distribution | Version | Supported |
---|---|---|
CentOS | 8 | ✅ |
CentOS | 7 | ✅ |
RHEL | 8 | ✅ |
RHEL | 7 | ✅ |
8080
is open: this is used in this guide for Gateway traffic (the API traffic to be proxied).cd
into the directoryhosts.yml
file to update ssh variables to your server(s). You can learn more about the hosts file here
tyk-gateway-ce
tyk-gateway-ce
: Tyk Gateway with CE config
-redis
: Redis database as Tyk Gateway dependencyvars/tyk.yaml
Variable | Default | Comments |
---|---|---|
secrets.APISecret | 352d20ee67be67f6340b4c0605b044b7 | API secret |
secrets.AdminSecret | 12345 | Admin secret |
redis.host | Redis server host if different than the hosts url | |
redis.port | 6379 | Redis server listening port |
redis.pass | Redis server password | |
redis.enableCluster | false | Enable if redis is running in cluster mode |
redis.storage.database | 0 | Redis server database |
redis.tls | false | Enable if redis connection is secured with SSL |
gateway.service.host | Gateway server host if different than the hosts url | |
gateway.service.port | 8080 | Gateway server listening port |
gateway.service.proto | http | Gateway server protocol |
gateway.service.tls | false | Set to true to enable SSL connections |
gateway.sharding.enabled | false | Set to true to enable filtering (sharding) of APIs |
gateway.sharding.tags | The tags to use when filtering (sharding) Tyk Gateway nodes. Tags are processed as OR operations. If you include a non-filter tag (e.g. an identifier such as node-id-1 , this will become available to your Dashboard analytics) |
vars/redis.yaml
Variable | Default | Comments |
---|---|---|
redis_bind_interface | 0.0.0.0 | Binding address of Redis |