├── .github └── stale.yml ├── README.md ├── mongo ├── deployments │ └── mongo.yaml ├── namespaces │ └── mongo.yaml └── services │ └── mongo.yaml ├── redis ├── namespaces │ └── redis.yaml ├── redis.conf ├── replicasets │ ├── redis-1.yaml │ ├── redis-2.yaml │ ├── redis-3.yaml │ ├── redis-4.yaml │ ├── redis-5.yaml │ └── redis-6.yaml └── services │ ├── redis-1.yaml │ ├── redis-2.yaml │ ├── redis-3.yaml │ ├── redis-4.yaml │ ├── redis-5.yaml │ ├── redis-6.yaml │ └── redis.yaml └── tyk ├── deployments ├── tyk-dashboard.yaml ├── tyk-gateway.yaml └── tyk-pump.yaml ├── namespaces └── tyk.yaml ├── pump.conf ├── services ├── tyk-dashboard.yaml └── tyk-gateway.yaml ├── tyk.conf └── tyk_analytics.conf /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Number of days of inactivity before an issue becomes stale 2 | daysUntilStale: 90 3 | # Number of days of inactivity before a stale issue is closed 4 | daysUntilClose: 14 5 | # Issues with these labels will never be considered stale 6 | exemptLabels: 7 | - pinned 8 | - security 9 | - Priority:Urgent 10 | - Priority:High 11 | # Label to use when marking an issue as stale 12 | staleLabel: wontfix 13 | # Comment to post when marking an issue as stale. Set to `false` to disable 14 | markComment: > 15 | This issue has been automatically marked as stale because it has not had 16 | recent activity. It will be closed if no further activity occurs, please comment if you would like this issue to remain open. Thank you 17 | for your contributions. 18 | # Comment to post when closing a stale issue. Set to `false` to disable 19 | closeComment: false 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Tyk + Kubernetes integration 2 | 3 | This project is **deprecated** and our [Tyk Operator](https://github.com/TykTechnologies/tyk-operator) and [Helm](https://github.com/TykTechnologies/tyk-helm-chart) charts should be used instead. 4 | -------------------------------------------------------------------------------- /mongo/deployments/mongo.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: mongodb 5 | namespace: mongo 6 | spec: 7 | replicas: 1 8 | template: 9 | metadata: 10 | labels: 11 | app: mongodb 12 | spec: 13 | containers: 14 | - image: mongo:latest 15 | imagePullPolicy: Always 16 | name: mongo 17 | command: ["mongod", "--bind_ip_all", "--smallfiles"] 18 | ports: 19 | - containerPort: 27017 20 | volumeMounts: 21 | - name: mongo-volume 22 | mountPath: /data/db 23 | volumes: 24 | - name: mongo-volume 25 | gcePersistentDisk: 26 | pdName: mongo-volume 27 | fsType: ext4 28 | -------------------------------------------------------------------------------- /mongo/namespaces/mongo.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: mongo 5 | -------------------------------------------------------------------------------- /mongo/services/mongo.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: mongodb 5 | namespace: mongo 6 | spec: 7 | ports: 8 | - port: 27017 9 | targetPort: 27017 10 | protocol: TCP 11 | selector: 12 | app: mongodb 13 | -------------------------------------------------------------------------------- /redis/namespaces/redis.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: redis 5 | -------------------------------------------------------------------------------- /redis/redis.conf: -------------------------------------------------------------------------------- 1 | appendonly yes 2 | cluster-enabled yes 3 | cluster-config-file /var/lib/redis/nodes.conf 4 | cluster-node-timeout 5000 5 | dir /var/lib/redis 6 | port 6379 7 | -------------------------------------------------------------------------------- /redis/replicasets/redis-1.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: ReplicaSet 3 | metadata: 4 | name: "redis-1" 5 | namespace: redis 6 | spec: 7 | replicas: 1 8 | template: 9 | metadata: 10 | labels: 11 | app: redis 12 | name: "redis-1" 13 | spec: 14 | containers: 15 | - name: redis 16 | image: "redis:3.2.0-alpine" 17 | command: 18 | - "redis-server" 19 | args: 20 | - "/etc/redis/redis.conf" 21 | - "--protected-mode" 22 | - "no" 23 | resources: 24 | requests: 25 | cpu: "100m" 26 | memory: "100Mi" 27 | ports: 28 | - name: redis 29 | containerPort: 6379 30 | protocol: "TCP" 31 | - name: cluster 32 | containerPort: 16379 33 | protocol: "TCP" 34 | volumeMounts: 35 | - name: "redis-conf" 36 | mountPath: "/etc/redis" 37 | - name: "redis-data" 38 | mountPath: "/var/lib/redis" 39 | volumes: 40 | - name: "redis-data" 41 | gcePersistentDisk: 42 | pdName: "redis-1" 43 | fsType: ext4 44 | - name: "redis-conf" 45 | configMap: 46 | name: "redis-conf" 47 | items: 48 | - key: "redis.conf" 49 | path: "redis.conf" 50 | -------------------------------------------------------------------------------- /redis/replicasets/redis-2.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: ReplicaSet 3 | metadata: 4 | name: "redis-2" 5 | namespace: redis 6 | spec: 7 | replicas: 1 8 | template: 9 | metadata: 10 | labels: 11 | app: redis 12 | name: "redis-2" 13 | spec: 14 | containers: 15 | - name: redis 16 | image: "redis:3.2.0-alpine" 17 | command: 18 | - "redis-server" 19 | args: 20 | - "/etc/redis/redis.conf" 21 | - "--protected-mode" 22 | - "no" 23 | resources: 24 | requests: 25 | cpu: "100m" 26 | memory: "100Mi" 27 | ports: 28 | - name: redis 29 | containerPort: 6379 30 | protocol: "TCP" 31 | - name: cluster 32 | containerPort: 16379 33 | protocol: "TCP" 34 | volumeMounts: 35 | - name: "redis-conf" 36 | mountPath: "/etc/redis" 37 | - name: "redis-data" 38 | mountPath: "/var/lib/redis" 39 | volumes: 40 | - name: "redis-data" 41 | gcePersistentDisk: 42 | pdName: "redis-2" 43 | fsType: ext4 44 | - name: "redis-conf" 45 | configMap: 46 | name: "redis-conf" 47 | items: 48 | - key: "redis.conf" 49 | path: "redis.conf" 50 | -------------------------------------------------------------------------------- /redis/replicasets/redis-3.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: ReplicaSet 3 | metadata: 4 | name: "redis-3" 5 | namespace: redis 6 | spec: 7 | replicas: 1 8 | template: 9 | metadata: 10 | labels: 11 | app: redis 12 | name: "redis-3" 13 | spec: 14 | containers: 15 | - name: redis 16 | image: "redis:3.2.0-alpine" 17 | command: 18 | - "redis-server" 19 | args: 20 | - "/etc/redis/redis.conf" 21 | - "--protected-mode" 22 | - "no" 23 | resources: 24 | requests: 25 | cpu: "100m" 26 | memory: "100Mi" 27 | ports: 28 | - name: redis 29 | containerPort: 6379 30 | protocol: "TCP" 31 | - name: cluster 32 | containerPort: 16379 33 | protocol: "TCP" 34 | volumeMounts: 35 | - name: "redis-conf" 36 | mountPath: "/etc/redis" 37 | - name: "redis-data" 38 | mountPath: "/var/lib/redis" 39 | volumes: 40 | - name: "redis-data" 41 | gcePersistentDisk: 42 | pdName: "redis-3" 43 | fsType: ext4 44 | - name: "redis-conf" 45 | configMap: 46 | name: "redis-conf" 47 | items: 48 | - key: "redis.conf" 49 | path: "redis.conf" 50 | -------------------------------------------------------------------------------- /redis/replicasets/redis-4.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: ReplicaSet 3 | metadata: 4 | name: "redis-4" 5 | namespace: redis 6 | spec: 7 | replicas: 1 8 | template: 9 | metadata: 10 | labels: 11 | app: redis 12 | name: "redis-4" 13 | spec: 14 | containers: 15 | - name: redis 16 | image: "redis:3.2.0-alpine" 17 | command: 18 | - "redis-server" 19 | args: 20 | - "/etc/redis/redis.conf" 21 | - "--protected-mode" 22 | - "no" 23 | resources: 24 | requests: 25 | cpu: "100m" 26 | memory: "100Mi" 27 | ports: 28 | - name: redis 29 | containerPort: 6379 30 | protocol: "TCP" 31 | - name: cluster 32 | containerPort: 16379 33 | protocol: "TCP" 34 | volumeMounts: 35 | - name: "redis-conf" 36 | mountPath: "/etc/redis" 37 | - name: "redis-data" 38 | mountPath: "/var/lib/redis" 39 | volumes: 40 | - name: "redis-data" 41 | gcePersistentDisk: 42 | pdName: "redis-4" 43 | fsType: ext4 44 | - name: "redis-conf" 45 | configMap: 46 | name: "redis-conf" 47 | items: 48 | - key: "redis.conf" 49 | path: "redis.conf" 50 | -------------------------------------------------------------------------------- /redis/replicasets/redis-5.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: ReplicaSet 3 | metadata: 4 | name: "redis-5" 5 | namespace: redis 6 | spec: 7 | replicas: 1 8 | template: 9 | metadata: 10 | labels: 11 | app: redis 12 | name: "redis-5" 13 | spec: 14 | containers: 15 | - name: redis 16 | image: "redis:3.2.0-alpine" 17 | command: 18 | - "redis-server" 19 | args: 20 | - "/etc/redis/redis.conf" 21 | - "--protected-mode" 22 | - "no" 23 | resources: 24 | requests: 25 | cpu: "100m" 26 | memory: "100Mi" 27 | ports: 28 | - name: redis 29 | containerPort: 6379 30 | protocol: "TCP" 31 | - name: cluster 32 | containerPort: 16379 33 | protocol: "TCP" 34 | volumeMounts: 35 | - name: "redis-conf" 36 | mountPath: "/etc/redis" 37 | - name: "redis-data" 38 | mountPath: "/var/lib/redis" 39 | volumes: 40 | - name: "redis-data" 41 | gcePersistentDisk: 42 | pdName: "redis-5" 43 | fsType: ext4 44 | - name: "redis-conf" 45 | configMap: 46 | name: "redis-conf" 47 | items: 48 | - key: "redis.conf" 49 | path: "redis.conf" 50 | -------------------------------------------------------------------------------- /redis/replicasets/redis-6.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: ReplicaSet 3 | metadata: 4 | name: "redis-6" 5 | namespace: redis 6 | spec: 7 | replicas: 1 8 | template: 9 | metadata: 10 | labels: 11 | app: redis 12 | name: "redis-6" 13 | spec: 14 | containers: 15 | - name: redis 16 | image: "redis:3.2.0-alpine" 17 | command: 18 | - "redis-server" 19 | args: 20 | - "/etc/redis/redis.conf" 21 | - "--protected-mode" 22 | - "no" 23 | resources: 24 | requests: 25 | cpu: "100m" 26 | memory: "100Mi" 27 | ports: 28 | - name: redis 29 | containerPort: 6379 30 | protocol: "TCP" 31 | - name: cluster 32 | containerPort: 16379 33 | protocol: "TCP" 34 | volumeMounts: 35 | - name: "redis-conf" 36 | mountPath: "/etc/redis" 37 | - name: "redis-data" 38 | mountPath: "/var/lib/redis" 39 | volumes: 40 | - name: "redis-data" 41 | gcePersistentDisk: 42 | pdName: "redis-6" 43 | fsType: ext4 44 | - name: "redis-conf" 45 | configMap: 46 | name: "redis-conf" 47 | items: 48 | - key: "redis.conf" 49 | path: "redis.conf" 50 | -------------------------------------------------------------------------------- /redis/services/redis-1.yaml: -------------------------------------------------------------------------------- 1 | kind: Service 2 | apiVersion: v1 3 | metadata: 4 | name: "redis-1" 5 | namespace: redis 6 | spec: 7 | selector: 8 | app: "redis" 9 | name: "redis-1" 10 | ports: 11 | - name: "redis" 12 | protocol: "TCP" 13 | port: 6379 14 | targetPort: 6379 15 | - name: "cluster" 16 | protocol: "TCP" 17 | port: 16379 18 | targetPort: 16379 19 | -------------------------------------------------------------------------------- /redis/services/redis-2.yaml: -------------------------------------------------------------------------------- 1 | kind: Service 2 | apiVersion: v1 3 | metadata: 4 | name: "redis-2" 5 | namespace: redis 6 | spec: 7 | selector: 8 | app: "redis" 9 | name: "redis-2" 10 | ports: 11 | - name: "redis" 12 | protocol: "TCP" 13 | port: 6379 14 | targetPort: 6379 15 | - name: "cluster" 16 | protocol: "TCP" 17 | port: 16379 18 | targetPort: 16379 19 | -------------------------------------------------------------------------------- /redis/services/redis-3.yaml: -------------------------------------------------------------------------------- 1 | kind: Service 2 | apiVersion: v1 3 | metadata: 4 | name: "redis-3" 5 | namespace: redis 6 | spec: 7 | selector: 8 | app: "redis" 9 | name: "redis-3" 10 | ports: 11 | - name: "redis" 12 | protocol: "TCP" 13 | port: 6379 14 | targetPort: 6379 15 | - name: "cluster" 16 | protocol: "TCP" 17 | port: 16379 18 | targetPort: 16379 19 | -------------------------------------------------------------------------------- /redis/services/redis-4.yaml: -------------------------------------------------------------------------------- 1 | kind: Service 2 | apiVersion: v1 3 | metadata: 4 | name: "redis-4" 5 | namespace: redis 6 | spec: 7 | selector: 8 | app: "redis" 9 | name: "redis-4" 10 | ports: 11 | - name: "redis" 12 | protocol: "TCP" 13 | port: 6379 14 | targetPort: 6379 15 | - name: "cluster" 16 | protocol: "TCP" 17 | port: 16379 18 | targetPort: 16379 19 | -------------------------------------------------------------------------------- /redis/services/redis-5.yaml: -------------------------------------------------------------------------------- 1 | kind: Service 2 | apiVersion: v1 3 | metadata: 4 | name: "redis-5" 5 | namespace: redis 6 | spec: 7 | selector: 8 | app: "redis" 9 | name: "redis-5" 10 | ports: 11 | - name: "redis" 12 | protocol: "TCP" 13 | port: 6379 14 | targetPort: 6379 15 | - name: "cluster" 16 | protocol: "TCP" 17 | port: 16379 18 | targetPort: 16379 19 | -------------------------------------------------------------------------------- /redis/services/redis-6.yaml: -------------------------------------------------------------------------------- 1 | kind: Service 2 | apiVersion: v1 3 | metadata: 4 | name: "redis-6" 5 | namespace: redis 6 | spec: 7 | selector: 8 | app: "redis" 9 | name: "redis-6" 10 | ports: 11 | - name: "redis" 12 | protocol: "TCP" 13 | port: 6379 14 | targetPort: 6379 15 | - name: "cluster" 16 | protocol: "TCP" 17 | port: 16379 18 | targetPort: 16379 19 | -------------------------------------------------------------------------------- /redis/services/redis.yaml: -------------------------------------------------------------------------------- 1 | kind: Service 2 | apiVersion: v1 3 | metadata: 4 | name: "redis" 5 | namespace: redis 6 | spec: 7 | selector: 8 | app: "redis" 9 | ports: 10 | - name: "redis" 11 | protocol: "TCP" 12 | port: 6379 13 | targetPort: 6379 14 | - name: "cluster" 15 | protocol: "TCP" 16 | port: 16379 17 | targetPort: 16379 18 | -------------------------------------------------------------------------------- /tyk/deployments/tyk-dashboard.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: tyk-dashboard 5 | namespace: tyk 6 | spec: 7 | replicas: 1 8 | template: 9 | metadata: 10 | labels: 11 | app: tyk-dashboard 12 | spec: 13 | containers: 14 | - image: tykio/tyk-dashboard:latest 15 | imagePullPolicy: Always 16 | name: tyk-dashboard 17 | env: 18 | - name: REDIGOCLUSTER_SHARDCOUNT 19 | value: "128" 20 | command: ["/opt/tyk-dashboard/tyk-analytics", "--conf=/etc/tyk-dashboard/tyk_analytics.conf"] 21 | workingDir: /opt/tyk-dashboard 22 | ports: 23 | - containerPort: 3000 24 | volumeMounts: 25 | - name: tyk-dashboard-conf 26 | mountPath: /etc/tyk-dashboard 27 | volumes: 28 | - name: tyk-dashboard-volume 29 | gcePersistentDisk: 30 | pdName: tyk-dashboard 31 | fsType: ext4 32 | - name: tyk-dashboard-conf 33 | configMap: 34 | name: tyk-dashboard-conf 35 | items: 36 | - key: tyk_analytics.conf 37 | path: tyk_analytics.conf 38 | -------------------------------------------------------------------------------- /tyk/deployments/tyk-gateway.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: tyk-gateway 5 | namespace: tyk 6 | spec: 7 | replicas: 1 8 | template: 9 | metadata: 10 | labels: 11 | app: tyk-gateway 12 | spec: 13 | containers: 14 | - image: tykio/tyk-gateway:latest 15 | imagePullPolicy: Always 16 | name: tyk-gateway 17 | env: 18 | - name: REDIGOCLUSTER_SHARDCOUNT 19 | value: "128" 20 | command: ["/opt/tyk-gateway/tyk", "--conf=/etc/tyk-gateway/tyk.conf"] 21 | workingDir: /opt/tyk-gateway 22 | ports: 23 | - containerPort: 8080 24 | volumeMounts: 25 | - name: tyk-gateway-apps 26 | mountPath: /apps 27 | - name: tyk-gateway-conf 28 | mountPath: /etc/tyk-gateway 29 | volumes: 30 | - name: tyk-gateway-apps 31 | gcePersistentDisk: 32 | pdName: tyk-gateway 33 | fsType: ext4 34 | - name: tyk-gateway-conf 35 | configMap: 36 | name: tyk-gateway-conf 37 | items: 38 | - key: tyk.conf 39 | path: tyk.conf 40 | -------------------------------------------------------------------------------- /tyk/deployments/tyk-pump.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: tyk-pump 5 | namespace: tyk 6 | spec: 7 | replicas: 1 8 | template: 9 | metadata: 10 | labels: 11 | app: tyk-pump 12 | spec: 13 | containers: 14 | - image: tykio/tyk-pump-docker-pub:latest 15 | imagePullPolicy: Always 16 | name: tyk-pump 17 | workingDir: "/opt/tyk-pump" 18 | env: 19 | - name: REDIGOCLUSTER_SHARDCOUNT 20 | value: "128" 21 | command: ["/opt/tyk-pump/tyk-pump", "-c", "/etc/tyk-pump/pump.conf"] 22 | volumeMounts: 23 | - name: tyk-pump-conf 24 | mountPath: /etc/tyk-pump 25 | volumes: 26 | - name: tyk-pump-conf 27 | configMap: 28 | name: tyk-pump-conf 29 | items: 30 | - key: pump.conf 31 | path: pump.conf 32 | -------------------------------------------------------------------------------- /tyk/namespaces/tyk.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: tyk 5 | -------------------------------------------------------------------------------- /tyk/pump.conf: -------------------------------------------------------------------------------- 1 | { 2 | "analytics_storage_type": "redis", 3 | "analytics_storage_config": { 4 | "type": "redis", 5 | "enable_cluster": true, 6 | "hosts": { 7 | "redis-1.redis.svc.cluster.local": "6379", 8 | "redis-4.redis.svc.cluster.local": "6379", 9 | "redis-2.redis.svc.cluster.local": "6379", 10 | "redis-5.redis.svc.cluster.local": "6379", 11 | "redis-3.redis.svc.cluster.local": "6379", 12 | "redis-6.redis.svc.cluster.local": "6379" 13 | }, 14 | "username": "", 15 | "password": "", 16 | "database": 0, 17 | "optimisation_max_idle": 100, 18 | "optimisation_max_active": 0 19 | }, 20 | "purge_delay": 2, 21 | "pumps": { 22 | "mongo": { 23 | "name": "mongo", 24 | "meta": { 25 | "collection_name": "tyk_analytics", 26 | "mongo_url": "mongodb://mongodb.mongo.svc.cluster.local:27017/tyk_analytics" 27 | } 28 | } 29 | }, 30 | "uptime_pump_config": { 31 | "collection_name": "tyk_uptime_analytics", 32 | "mongo_url": "mongodb://mongodb.mongo.svc.cluster.local:27017/tyk_analytics" 33 | }, 34 | "dont_purge_uptime_data": false 35 | } 36 | -------------------------------------------------------------------------------- /tyk/services/tyk-dashboard.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: tyk-dashboard 5 | namespace: tyk 6 | spec: 7 | ports: 8 | - port: 3000 9 | targetPort: 3000 10 | protocol: TCP 11 | selector: 12 | app: tyk-dashboard 13 | type: LoadBalancer 14 | -------------------------------------------------------------------------------- /tyk/services/tyk-gateway.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: tyk-gateway 5 | namespace: tyk 6 | spec: 7 | ports: 8 | - port: 80 9 | targetPort: 8080 10 | protocol: TCP 11 | selector: 12 | app: tyk-gateway 13 | type: LoadBalancer -------------------------------------------------------------------------------- /tyk/tyk.conf: -------------------------------------------------------------------------------- 1 | { 2 | "listen_port": 8080, 3 | "secret": "352d20ee67be67f6340b4c0605b044b7", 4 | "node_secret": "352d20ee67be67f6340b4c0605b044b7", 5 | "template_path": "/opt/tyk-gateway/templates", 6 | "tyk_js_path": "/opt/tyk-gateway/js/tyk.js", 7 | "middleware_path": "/opt/tyk-gateway/middleware", 8 | "use_db_app_configs": true, 9 | "db_app_conf_options": { 10 | "connection_string": "http://tyk-dashboard.tyk.svc.cluster.local:3000", 11 | "node_is_segmented": false, 12 | "tags": [ 13 | "test2" 14 | ] 15 | }, 16 | "app_path": "/opt/tyk-gateway/apps/", 17 | "storage": { 18 | "type": "redis", 19 | "enable_cluster": true, 20 | "hosts": { 21 | "redis-1.redis.svc.cluster.local": "6379", 22 | "redis-4.redis.svc.cluster.local": "6379", 23 | "redis-2.redis.svc.cluster.local": "6379", 24 | "redis-5.redis.svc.cluster.local": "6379", 25 | "redis-3.redis.svc.cluster.local": "6379", 26 | "redis-6.redis.svc.cluster.local": "6379" 27 | }, 28 | "username": "", 29 | "password": "", 30 | "database": 0, 31 | "optimisation_max_idle": 100 32 | }, 33 | "enable_analytics": true, 34 | "analytics_config": { 35 | "type": "", 36 | "ignored_ips": [], 37 | "enable_detailed_recording": false, 38 | "enable_geo_ip": false, 39 | "geo_ip_db_path": "", 40 | "normalise_urls": { 41 | "enabled": false, 42 | "normalise_uuids": false, 43 | "normalise_numbers": false, 44 | "custom_patterns": [] 45 | }, 46 | "pool_size": 0, 47 | "records_buffer_size": 0, 48 | "storage_expiration_time": 0 49 | }, 50 | "health_check": { 51 | "enable_health_checks": false, 52 | "health_check_value_timeouts": 60 53 | }, 54 | "optimisations_use_async_session_write": true, 55 | "enable_non_transactional_rate_limiter": true, 56 | "enable_sentinel_rate_limiter": false, 57 | "allow_master_keys": false, 58 | "policies": { 59 | "policy_source": "service", 60 | "policy_connection_string": "http://tyk-dashboard.tyk.svc.cluster.local:3000", 61 | "policy_record_name": "tyk_policies" 62 | }, 63 | "hash_keys": true, 64 | "close_connections": false, 65 | "http_server_options": { 66 | "enable_websockets": true 67 | }, 68 | "allow_insecure_configs": true, 69 | "coprocess_options": { 70 | "enable_coprocess": false, 71 | "coprocess_grpc_server": "" 72 | }, 73 | "enable_bundle_downloader": true, 74 | "bundle_base_url": "", 75 | "global_session_lifetime": 100, 76 | "force_global_session_lifetime": false, 77 | "max_idle_connections_per_host": 500 78 | } 79 | -------------------------------------------------------------------------------- /tyk/tyk_analytics.conf: -------------------------------------------------------------------------------- 1 | { 2 | "listen_port": 3000, 3 | "tyk_api_config": { 4 | "Host": "http://tyk-gateway.tyk.svc.cluster.local", 5 | "Port": "80", 6 | "Secret": "352d20ee67be67f6340b4c0605b044b7" 7 | }, 8 | "mongo_url": "mongodb://mongodb.mongo.svc.cluster.local:27017/tyk_analytics", 9 | "license_key": "", 10 | "page_size": 10, 11 | "admin_secret": "12345", 12 | "shared_node_secret": "352d20ee67be67f6340b4c0605b044b7", 13 | "enable_cluster": true, 14 | "force_api_defaults": false, 15 | "notify_on_change": true, 16 | "redis_database": 0, 17 | "redis_hosts": { 18 | "redis-1.redis.svc.cluster.local": "6379", 19 | "redis-4.redis.svc.cluster.local": "6379", 20 | "redis-2.redis.svc.cluster.local": "6379", 21 | "redis-5.redis.svc.cluster.local": "6379", 22 | "redis-3.redis.svc.cluster.local": "6379", 23 | "redis-6.redis.svc.cluster.local": "6379" 24 | }, 25 | "hash_keys": true, 26 | "email_backend": { 27 | "enable_email_notifications": false, 28 | "code": "", 29 | "settings": null, 30 | "default_from_email": "", 31 | "default_from_name": "" 32 | }, 33 | "hide_listen_path": false, 34 | "sentry_code": "", 35 | "sentry_js_code": "", 36 | "use_sentry": false, 37 | "enable_master_keys": false, 38 | "enable_duplicate_slugs": true, 39 | "show_org_id": true, 40 | "host_config": { 41 | "enable_host_names": false, 42 | "disable_org_slug_prefix": true, 43 | "hostname": "", 44 | "override_hostname": "www.tyk-portal-test.com", 45 | "portal_domains": {}, 46 | "portal_root_path": "/portal" 47 | }, 48 | "http_server_options": { 49 | "use_ssl": false, 50 | "certificates": [ 51 | { 52 | "domain_name": "", 53 | "cert_file": "", 54 | "key_file": "" 55 | } 56 | ], 57 | "min_version": 0 58 | }, 59 | "ui": { 60 | "login_page": {}, 61 | "nav": {}, 62 | "uptime": {}, 63 | "portal_section": null, 64 | "designer": {}, 65 | "dont_show_admin_sockets": false, 66 | "dont_allow_license_management": false, 67 | "dont_allow_license_management_view": false 68 | }, 69 | "home_dir": "/opt/tyk-dashboard", 70 | "identity_broker": { 71 | "enabled": false, 72 | "host": { 73 | "connection_string": "", 74 | "secret": "" 75 | } 76 | }, 77 | "tagging_options": { 78 | "tag_all_apis_by_org": false 79 | } 80 | } 81 | --------------------------------------------------------------------------------