-
Notifications
You must be signed in to change notification settings - Fork 1
/
ratelimit-deployment.yaml
69 lines (69 loc) · 1.62 KB
/
ratelimit-deployment.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
69
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: ratelimit
spec:
replicas: 1
template:
metadata:
labels:
service: ambassador-ratelimit
spec:
volumes:
- name: config
configMap:
name: ratelimit-config
items:
- key: config_ip.yaml
path: config.yaml
containers:
- args:
- /bin/ratelimit
env:
- name: LOG_LEVEL
value: debug
- name: REDIS_SOCKET_TYPE
value: tcp
- name: REDIS_URL
value: redis:6379
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
value: ratelimit
- name: USE_STATSD
value: "false"
- name: GRPC_PORT
value: "8081"
- name: DEBUG_PORT
value: "6070"
image: lyft-ratelimit
name: ratelimit
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
protocol: TCP
- name: grpc
containerPort: 8081
protocol: TCP
- name: debug
containerPort: 6070
protocol: TCP
resources:
limits:
cpu: 1
memory: 400Mi
requests:
cpu: 200m
memory: 100Mi
volumeMounts:
- name: config
mountPath: data/ratelimit/config/config.yaml
subPath: config.yaml
livenessProbe:
httpGet:
path: /healthcheck
port: 8080
initialDelaySeconds: 30
periodSeconds: 3
restartPolicy: Always