-
Notifications
You must be signed in to change notification settings - Fork 0
/
zdashboard.yml
81 lines (81 loc) · 2.04 KB
/
zdashboard.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
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
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
metadata:
name: manila-cephfs-share
provisioner: manila-provisioner
parameters:
type: "Meyrin CephFS"
zones: nova
osSecretName: os-trustee
osSecretNamespace: kube-system
protocol: CEPHFS
backend: csi-cephfs
csi-driver: cephfs.csi.ceph.com
osShareID: b9XXXXf-cfXX-4Xcc-bdad-0dXXXXXXa
osShareAccessID: 03XXXX87-cXe-4Xc-aX2-b0XXXXXXXXXe
reclaimPolicy: Retain
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: manila-cephfs-pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100G
storageClassName: manila-cephfs-share
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: zoom-dashboard
spec:
selector:
matchLabels:
app: zoom-dashboard
replicas: 1
template:
metadata:
labels:
app: zoom-dashboard
spec:
securityContext:
runAsUser: 0
hostNetwork: true
containers:
- name: zoom-dashboard
image: gitlab-registry.cern.ch/videoconference/zoom-dashboard:latest
command: ["/app/dispatch_collectors.sh"]
terminationMessagePolicy: FallbackToLogsOnError
livenessProbe:
exec:
command:
- bash
- '-c'
- '[ $(date +%s -r /var/log/zoom-dashboard/zoom-meetings-live.log) -gt $(date +%s --date="60 min ago") ]'
failureThreshold: 3
periodSeconds: 120
successThreshold: 1
timeoutSeconds: 30
volumeMounts:
- mountPath: /var/log/zoom-dashboard
name: zoomdata
- mountPath: /app/config.py
subPath: config.py
name: config-py-config
readOnly: true
volumes:
- name: zoomdata
persistentVolumeClaim:
claimName: manila-cephfs-pvc
readOnly: false
- name: config-py-config
configMap:
name: config-py-config
items:
- key: config.py
path: config.py
imagePullSecrets:
- name: regcred