-
Notifications
You must be signed in to change notification settings - Fork 0
/
omaf-nginx.yml
52 lines (52 loc) · 1.14 KB
/
omaf-nginx.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
apiVersion: v1
kind: Service
metadata:
name: omaf-server
spec:
selector:
func: video360
ports:
- port: 5000
nodePort: 31500
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: video360-nginx
spec:
replicas: 1
selector:
matchLabels:
func: video360
template:
metadata:
labels:
func: video360
spec:
volumes:
- name: videodir
hostPath:
path: /mnt/kubernetes/video360/Garage_gb2
type: Directory
- name: videodir-macos
hostPath:
path: /mnt/kubernetes/video360/__MACOSX
type: Directory
- name: omaf-js
hostPath:
path: /mnt/kubernetes/video360/omaf.js
type: Directory
containers:
- name: nginx
image: granite:30500/omaf-nginx:latest
imagePullPolicy: Never
ports:
- containerPort: 5000
volumeMounts:
- mountPath: /usr/share/nginx/html/Garage_gb2
name: videodir
- mountPath: /usr/share/nginx/html/__MAXOSX
name: videodir-macos
- mountPath: /usr/share/nginx/html/omaf.js
name: omaf-js