-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzenodo-worker-low-index-deployment.yaml
57 lines (57 loc) · 1.4 KB
/
zenodo-worker-low-index-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
apiVersion: v1
kind: Service
metadata:
name: zenodo-worker-low-index
labels:
app: zenodo
spec:
ports:
- port: 5601
selector:
app: zenodo
tier: worker
clusterIP: None
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: zenodo-worker-low-index
labels:
app: zenodo
spec:
selector:
matchLabels:
app: zenodo
tier: worker
strategy:
type: Recreate
template:
metadata:
labels:
app: zenodo
tier: worker
spec:
containers:
- name: worker
image: baltig.infn.it:4567/infnct/dev/zenodo/infnct/zenodo:1.0.12
volumeMounts:
- name: zenodo-archive-storage
mountPath: /opt/zenodo_venv/var/instance/archive
- name: zenodo-data-storage
mountPath: /opt/zenodo_venv/var/instance/data
- name: zenodo-config-file
mountPath: /opt/zenodo_venv/var/instance
ports:
- containerPort: 5601
command: ["/bin/sh"]
args: ["-c", "source /opt/zenodo_venv/bin/activate; celery worker -A zenodo.celery -B -Q low,celery-indexer --loglevel=INFO"]
volumes:
- name: zenodo-archive-storage
persistentVolumeClaim:
claimName: zenodo-archive-pv-claim
- name: zenodo-data-storage
persistentVolumeClaim:
claimName: zenodo-data-pv-claim
- name: zenodo-config-file
configMap:
name: zenodo-config