diff deploy_ui.yaml @ 2:78c1a2983010

rewrite UI and file serving parts; use vite
author drewp@bigasterisk.com
date Mon, 20 Mar 2023 20:26:02 -0700
parents
children c8a41359505c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deploy_ui.yaml	Mon Mar 20 20:26:02 2023 -0700
@@ -0,0 +1,37 @@
+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: bang5:5000/video_image
+          command:
+            - pnpx
+            - vite
+          ports:
+            - containerPort: 8002
+          # resources:
+          #   requests:
+          #     cpu: "1000m"
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: video
+spec:
+  ports:
+    # - {port: 80, targetPort: 8000, name: py}
+    - { port: 8002, targetPort: 8002, name: vite }
+  selector:
+    app: video