-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtasker.yml
40 lines (40 loc) · 1.06 KB
/
tasker.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
apiVersion: batch/v1
kind: Job
metadata:
name: tasker
namespace: asreview-cloud
spec:
# ttlSecondsAfterFinished: 30 # Automatically delete after 30 seconds
template:
metadata:
name: tasker
spec:
containers:
- name: c
image: YOURUSER/tasker
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"
restartPolicy: OnFailure
volumes:
- name: asreview-storage
# nfs:
# server: <FIXME>
# path: "/"
# persistentVolumeClaim:
# claimName: asreview-storage