Mercurial > code > home > repos > video
comparison deploy.yaml @ 49:1bd17c2e5517 default tip
video.py must sign video urls for serve-files.js to serve them
author | drewp@bigasterisk.com |
---|---|
date | Fri, 06 Dec 2024 17:13:51 -0800 |
parents | ed16fdbb3996 |
children |
comparison
equal
deleted
inserted
replaced
48:046673b1cc24 | 49:1bd17c2e5517 |
---|---|
16 prometheus.io/port: "8004" | 16 prometheus.io/port: "8004" |
17 spec: | 17 spec: |
18 volumes: | 18 volumes: |
19 - { name: video-data-download, persistentVolumeClaim: { claimName: video-data-download } } | 19 - { name: video-data-download, persistentVolumeClaim: { claimName: video-data-download } } |
20 - { name: video-data-src, persistentVolumeClaim: { claimName: video-data-src } } | 20 - { name: video-data-src, persistentVolumeClaim: { claimName: video-data-src } } |
21 - { name: secret, secret: { secretName: video } } | |
21 containers: | 22 containers: |
22 - name: ingest | 23 - name: ingest |
23 image: reg:5000/video_image | 24 image: reg:5000/video_image |
24 command: | 25 command: |
25 - pdm | 26 - pdm |
27 - python | 28 - python |
28 - ingest.py | 29 - ingest.py |
29 volumeMounts: | 30 volumeMounts: |
30 - { name: video-data-download, mountPath: /data/video-download } | 31 - { name: video-data-download, mountPath: /data/video-download } |
31 - { name: video-data-src, mountPath: /data/video-src } | 32 - { name: video-data-src, mountPath: /data/video-src } |
33 | |
32 | 34 |
33 - name: files | 35 - name: files |
34 image: reg:5000/video_image | 36 image: reg:5000/video_image |
35 # alternate: [ "webfsd", "-Fp", "9054", "-r", "/vids/" ] | 37 # alternate: [ "webfsd", "-Fp", "9054", "-r", "/vids/" ] |
36 command: | 38 command: |
41 ports: | 43 ports: |
42 - containerPort: 8003 | 44 - containerPort: 8003 |
43 volumeMounts: | 45 volumeMounts: |
44 - { name: video-data-download, mountPath: /data/video-download } | 46 - { name: video-data-download, mountPath: /data/video-download } |
45 - { name: video-data-src, mountPath: /data/video-src } | 47 - { name: video-data-src, mountPath: /data/video-src } |
48 - { name: secret, mountPath: /secret } | |
46 | 49 |
47 - name: api | 50 - name: api |
48 image: reg:5000/video_image | 51 image: reg:5000/video_image |
49 command: | 52 command: |
50 - pdm | 53 - pdm |
51 - run | 54 - run |
52 - python | 55 - python |
53 - video.py | 56 - video.py |
54 ports: | 57 ports: |
55 - containerPort: 8004 | 58 - containerPort: 8004 |
59 volumeMounts: | |
60 - { name: secret, mountPath: /secret } | |
56 resources: | 61 resources: |
57 requests: | 62 requests: |
58 cpu: "2" | 63 cpu: "2" |
59 | 64 |
60 affinity: | 65 affinity: |