Mercurial > code > home > repos > video
view deploy_files.yaml @ 6:ccfea3625cf6
render thumbs and display them (no video player at all atm)
author | drewp@bigasterisk.com |
---|---|
date | Sun, 09 Apr 2023 18:02:25 -0700 |
parents | c8a41359505c |
children | de93b9133acb |
line wrap: on
line source
apiVersion: apps/v1 kind: Deployment metadata: name: video-files spec: replicas: 1 selector: matchLabels: app: video-files template: metadata: labels: app: video-files annotations: { prometheus.io/scrape: "false" } spec: volumes: - name: data persistentVolumeClaim: claimName: video-data containers: - name: files image: bang5:5000/video_image # alternate: [ "webfsd", "-Fp", "9054", "-r", "/vids/" ] command: - pnpm - exec - node - ./serve-files.js ports: - containerPort: 8003 volumeMounts: - { name: data, mountPath: /data } - name: api image: bang5:5000/video_image command: - pdm - run - uvicorn - '--port=8004' - '--host=0.0.0.0' - '--reload' - 'video:app' ports: - containerPort: 8004 volumeMounts: - { name: data, mountPath: /data } resources: requests: cpu: "2" affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: "kubernetes.io/hostname" operator: In values: ["ditto"] --- apiVersion: v1 kind: Service metadata: name: video-files spec: ports: - { port: 8003, targetPort: 8003, name: files } - { port: 8004, targetPort: 8004, name: api } selector: app: video-files