-
Notifications
You must be signed in to change notification settings - Fork 5
/
rq-Deployment.yaml
44 lines (44 loc) · 1.22 KB
/
rq-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: rq-worker-outputs
namespace: {{ .Values.workers_namespace }}
spec:
replicas: 1
selector:
matchLabels:
app: rq-worker-outputs
template:
metadata:
labels:
app: rq-worker-outputs
spec:
serviceAccountName: rq-worker
containers:
- name: rq-worker-outputs
command:
["rq", "worker", "--with-scheduler", "-c", "cs_workers.services.rq_settings"]
image: "{{ .Values.registry }}/{{ .Values.project }}/outputs_processor:{{ .Values.tag }}"
env:
- name: BUCKET
value: {{ .Values.bucket }}
- name: PROJECT
value: {{ .Values.project }}
- name: REDIS_HOST
value: {{ .Values.redis.host }}
- name: REDIS_PORT
value: "{{ .Values.redis.port }}"
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: workers-redis-secret
key: PASSWORD
resources:
requests:
cpu: 1
memory: 1G
limits:
cpu: 1
memory: 2G
nodeSelector:
component: api