-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb_ingress.yaml
92 lines (91 loc) · 2.25 KB
/
web_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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
apiVersion: v1
kind: Service
metadata:
labels:
mediacms-service: mediaweb1
name: mediaweb1
spec:
ports:
- name: "8000"
port: 8000
targetPort: 8000
- name: "22"
port: 22
targetPort: 22
selector:
mediacms-service: mediaweb1
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
mediacms-service: mediaweb1
name: mediaweb1
spec:
replicas: 1
selector:
matchLabels:
mediacms-service: mediaweb1
strategy:
type: Recreate
template:
metadata:
labels:
mediacms-service: mediaweb1
user: mediacms
spec:
securityContext:
runAsUser: 80
runAsGroup: 80
fsGroup: 80
fsGroupChangePolicy: Always
imagePullSecrets:
- name: regcred
containers:
- env:
- name: ENABLE_UWSGI
value: "yes"
- name: ENABLE_NGINX
value: "yes"
- name: ENABLE_CELERY_BEAT
value: "no"
- name: ENABLE_CELERY_LONG
value: "no"
- name: ENABLE_CELERY_SHORT
value: "no"
- name: ENABLE_MIGRATIONS
value: "no"
- name: EMAIL_HOST_PASSWORD
value: ""
- name: SD_UID
value: "mediacms"
- name: HOME_SERVER
value: "10.2.0.18"
- name: PUBLIC_HOME_SERVER
value: "silo5.sciencedata.dk"
- name: REDIS_HOST
value: "mediaredis1"
- name: NO_SAML
value: "yes"
image: sciencedata/mediacms_sciencedata:latest
name: mediaweb1
ports:
- containerPort: 8000
protocol: TCP
- containerPort: 22
protocol: TCP
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