view deploy_ui.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 1fa90a903621
children
line wrap: on
line source

apiVersion: apps/v1
kind: Deployment
metadata:
  name: video
spec:
  replicas: 1
  selector:
    matchLabels:
      app: video
  template:
    metadata:
      labels:
        app: video
      annotations:
        prometheus.io/scrape: "false"
    spec:
      containers:
        - name: vite
          image: reg:5000/video_image
          command:
           - node_modules/.bin/vite
          #  - --debug
          ports:
            - containerPort: 8002
---
apiVersion: v1
kind: Service
metadata:
  name: video
spec:
  ports:
    - { port: 8002, targetPort: 8002, name: vite }
  selector:
    app: video