Mercurial > code > home > repos > video
diff deploy.yaml @ 36:ed16fdbb3996
rewrite WIP. scan fs separately; store in db. thumbs are broken for now
author | drewp@bigasterisk.com |
---|---|
date | Tue, 03 Dec 2024 00:08:22 -0800 |
parents | 814bda860dda |
children | 1bd17c2e5517 |
line wrap: on
line diff
--- a/deploy.yaml Mon Dec 02 23:27:59 2024 -0800 +++ b/deploy.yaml Tue Dec 03 00:08:22 2024 -0800 @@ -3,7 +3,7 @@ metadata: name: video-files spec: - replicas: 2 + replicas: 1 selector: matchLabels: app: video-files @@ -16,10 +16,20 @@ prometheus.io/port: "8004" spec: volumes: - - name: data - persistentVolumeClaim: - claimName: video-data + - { name: video-data-download, persistentVolumeClaim: { claimName: video-data-download } } + - { name: video-data-src, persistentVolumeClaim: { claimName: video-data-src } } containers: + - name: ingest + image: reg:5000/video_image + command: + - pdm + - run + - python + - ingest.py + volumeMounts: + - { name: video-data-download, mountPath: /data/video-download } + - { name: video-data-src, mountPath: /data/video-src } + - name: files image: reg:5000/video_image # alternate: [ "webfsd", "-Fp", "9054", "-r", "/vids/" ] @@ -31,7 +41,8 @@ ports: - containerPort: 8003 volumeMounts: - - { name: data, mountPath: /data } + - { name: video-data-download, mountPath: /data/video-download } + - { name: video-data-src, mountPath: /data/video-src } - name: api image: reg:5000/video_image @@ -42,8 +53,6 @@ - video.py ports: - containerPort: 8004 - volumeMounts: - - { name: data, mountPath: /data } resources: requests: cpu: "2"