-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathakri-video-streaming-app.yaml
77 lines (77 loc) · 1.9 KB
/
akri-video-streaming-app.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: akri-video-streaming-app
spec:
replicas: 1
selector:
matchLabels:
app: akri-video-streaming-app
template:
metadata:
labels:
app: akri-video-streaming-app
spec:
serviceAccountName: akri-video-streaming-app-sa
containers:
- name: akri-video-streaming-app
image: ghcr.io/deislabs/akri/video-streaming-app:latest-dev
imagePullPolicy: Always
env:
# Streamer works in two modes; either specify the following commented
# block of env vars to explicitly target cameras (update the <id>s for
# your specific cameras) or
# specify a Akri configuration name to pick up cameras automatically
# - name: CAMERAS_SOURCE_SVC
# value: "akri-udev-video-svc"
# - name: CAMERA_COUNT
# value: "2"
# - name: CAMERA1_SOURCE_SVC
# value: "akri-udev-video-<id>-svc"
# - name: CAMERA2_SOURCE_SVC
# value: "akri-udev-video-<id>-svc"
- name: CONFIGURATION_NAME
value: akri-udev-video
---
apiVersion: v1
kind: Service
metadata:
name: akri-video-streaming-app
namespace: default
labels:
app: akri-video-streaming-app
spec:
selector:
app: akri-video-streaming-app
ports:
- name: http
port: 80
targetPort: 5000
type: NodePort
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: akri-video-streaming-app-sa
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: akri-video-streaming-app-role
rules:
- apiGroups: [""]
resources: ["services"]
verbs: ["list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: akri-video-streaming-app-binding
roleRef:
apiGroup: ""
kind: ClusterRole
name: akri-video-streaming-app-role
subjects:
- kind: ServiceAccount
name: akri-video-streaming-app-sa
namespace: default