This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
gw-deploy.yaml
68 lines (68 loc) · 1.5 KB
/
gw-deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
apiVersion: apps/v1
kind: Deployment
metadata:
name: tyk-gtw
labels:
app: tyk-gtw
spec:
replicas: 1
selector:
matchLabels:
app: tyk-gtw
template:
metadata:
labels:
app: tyk-gtw
spec:
containers:
- name: tyk-gtw
image: "tykio/tyk-gateway:v3.1.0"
imagePullPolicy: Always
ports:
- containerPort: 8089
env:
- name: TYK_GW_LISTENPORT
value: "8080"
- name: TYK_GW_SECRET
value: "foo"
- name: TYK_GW_STORAGE_HOST
value: "redis"
- name: TYK_GW_STORAGE_PORT
value: "6379"
- name: TYK_GW_STORAGE_PASSWORD
value: ""
- name: TYK_LOGLEVEL
value: "info"
- name: GODEBUG
value: "netdns=cgo"
volumeMounts:
- name: tyk-gateway-conf
mountPath: /opt/tyk-gateway/tyk.conf
subPath: tyk.conf
resources:
limits:
memory: 512Mi
cpu: "1"
requests:
memory: 256Mi
cpu: "0.2"
volumes:
- name: tyk-gateway-conf
configMap:
name: tyk-gateway-conf
items:
- key: tyk.conf
path: tyk.conf
---
apiVersion: v1
kind: Service
metadata:
name: tyk-svc
labels:
app: tyk-gtw
spec:
ports:
- port: 8080
targetPort: 8080
selector:
app: tyk-gtw