-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathworker.yml
68 lines (68 loc) · 1.89 KB
/
worker.yml
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: asreview-worker
namespace: asreview-cloud
spec:
replicas: 8
selector:
matchLabels:
app: asreview-worker
template:
metadata:
labels:
app: asreview-worker
spec:
containers:
- name: c
image: YOURUSER/worker
resources:
limits:
memory: "4Gi"
cpu: "1"
volumeMounts:
- name: asreview-storage
mountPath: /app/workdir
env:
- name: RABBITMQ_USER
valueFrom:
secretKeyRef:
name: rabbitmq-default-user
key: username
- name: RABBITMQ_PASS
valueFrom:
secretKeyRef:
name: rabbitmq-default-user
key: password
- name: RABBITMQ_HOST
value: rabbitmq
- name: RABBITMQ_PORT
value: "5672"
# - name: S3_REGION_NAME
# valueFrom:
# secretKeyRef:
# name: s3-secret
# key: S3_REGION_NAME
# - name: S3_ENDPOINT_URL
# valueFrom:
# secretKeyRef:
# name: s3-secret
# key: S3_ENDPOINT_URL
# - name: S3_AWS_ACCESS_KEY_ID
# valueFrom:
# secretKeyRef:
# name: s3-secret
# key: S3_AWS_ACCESS_KEY_ID
# - name: S3_AWS_SECRET_ACCESS_KEY
# valueFrom:
# secretKeyRef:
# name: s3-secret
# key: S3_AWS_SECRET_ACCESS_KEY
restartPolicy: Always
volumes:
- name: asreview-storage
# nfs:
# server: <FIXME>
# path: "/"
# persistentVolumeClaim:
# claimName: asreview-storage