Mercurial > code > home > repos > video
comparison deploy_files.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 | ee55ed10faec |
comparison
equal
deleted
inserted
replaced
1:f036a4955ad2 | 2:78c1a2983010 |
---|---|
1 apiVersion: apps/v1 | |
2 kind: Deployment | |
3 metadata: | |
4 name: video-files | |
5 spec: | |
6 replicas: 1 | |
7 selector: | |
8 matchLabels: | |
9 app: video-files | |
10 template: | |
11 metadata: | |
12 labels: | |
13 app: video-files | |
14 annotations: { prometheus.io/scrape: "false" } | |
15 spec: | |
16 volumes: | |
17 - name: data | |
18 persistentVolumeClaim: | |
19 claimName: video-data | |
20 containers: | |
21 - name: files | |
22 image: bang5:5000/video_image | |
23 command: | |
24 - pnpm | |
25 - exec | |
26 - node | |
27 - ./serve-files.js | |
28 ports: | |
29 - containerPort: 8003 | |
30 | |
31 volumeMounts: | |
32 - { name: data, mountPath: /data } | |
33 | |
34 affinity: | |
35 nodeAffinity: | |
36 requiredDuringSchedulingIgnoredDuringExecution: | |
37 nodeSelectorTerms: | |
38 - matchExpressions: | |
39 - key: "kubernetes.io/hostname" | |
40 operator: In | |
41 values: ["ditto"] | |
42 --- | |
43 apiVersion: v1 | |
44 kind: Service | |
45 metadata: | |
46 name: video-files | |
47 spec: | |
48 ports: | |
49 - { port: 8003, targetPort: 8003, name: files } | |
50 selector: | |
51 app: video-files |