-
Notifications
You must be signed in to change notification settings - Fork 0
/
worker_ingress.yaml
68 lines (68 loc) · 1.85 KB
/
worker_ingress.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
63
64
65
66
67
68
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
mediacms-service: mediaworker1
name: mediaworker1
spec:
replicas: 1
selector:
matchLabels:
mediacms-service: mediaworker1
strategy:
type: Recreate
template:
metadata:
labels:
mediacms-service: mediaworker1
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"
- name: REDIS_HOST
value: "mediaredis1"
- name: CUDA_VISIBLE_DEVICES_NUM
value: "4"
image: sciencedata/mediacms-worker_sciencedata:latest
name: mediaworker1
volumeMounts:
- name: nfs-claim-sciencedata-mediacms
mountPath: /home/mediacms.io/mediacms/media_files
readOnly: false
securityContext:
capabilities:
add:
- "SYS_CHROOT"
- "AUDIT_WRITE"
- "NET_ADMIN"
runtimeClassName: nvidia
nodeName: worker1
restartPolicy: Always
volumes:
- name: nfs-claim-sciencedata-mediacms
persistentVolumeClaim:
claimName: nfs-claim-10.0.0.18-mediacms