summaryrefslogtreecommitdiffstats
path: root/edge/sample/live_stream_app/deployment_uv4l.yml
blob: 5dadb9c287c999b00cf43a3ed522beee60c10fac (plain)
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
---
kind: Service
apiVersion: v1
metadata:
  name: uvservice
spec:
  selector:
    app: uvapp
  ports:
    - protocol: "TCP"
      # Port accessible inside cluster
      port: 8081
      # Port to forward to inside the pod
      targetPort: 9090
      # Port accessible outside cluster
      nodePort: 30002
  type: LoadBalancer



---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: uvdeployment
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: uvapp
    spec:
      containers:
        - name: uvapp
          image: localhost:5000/clover-live-stream:latest
          volumeMounts:
            - mountPath: /dev/
              name: dev-dir
          ports:
            - containerPort: 9090
          args: ["720", "480", "40"]
          securityContext:
            privileged: true
      volumes:
        - name: dev-dir
          hostPath:
            path: /dev/
      nodeSelector:
        camera: yo