-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworker.yaml
62 lines (62 loc) · 1.66 KB
/
worker.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
mediacms-service: mediaworker
name: mediaworker
spec:
replicas: 1
selector:
matchLabels:
mediacms-service: mediaworker
strategy:
type: Recreate
template:
metadata:
labels:
mediacms-service: mediaworker
user: mediacms
spec:
securityContext:
runAsUser: 80
runAsGroup: 80
fsGroup: 80
fsGroupChangePolicy: Always
imagePullSecrets:
- name: regcred
containers:
- env:
- name: ENABLE_UWSGI
value: "no"
- name: ENABLE_NGINX
value: "no"
- name: ENABLE_CELERY_BEAT
value: "no"
- name: ENABLE_CELERY_LONG
value: "yes"
- name: ENABLE_CELERY_SHORT
value: "yes"
- name: ENABLE_MIGRATIONS
value: "no"
value: "mediacms"
- name: HOME_SERVER
value: "10.2.0.18"
- name: PUBLIC_HOME_SERVER
value: "silo5.sciencedata.dk"
image: sciencedata/mediacms_sciencedata:latest
name: mediaworker
volumeMounts:
- name: nfs-claim-sciencedata-mediacms
mountPath: /home/mediacms.io/mediacms/media_files
readOnly: false
securityContext:
capabilities:
add:
- "SYS_CHROOT"
- "AUDIT_WRITE"
- "NET_ADMIN"
restartPolicy: Always
volumes:
- name: nfs-claim-sciencedata-mediacms
persistentVolumeClaim:
claimName: nfs-claim-10.0.0.18-mediacms