Mercurial > code > home > repos > light-bridge
annotate deploy.yaml @ 27:32cfefe3155b
try harder to crash if there's an mqtt error, so k8s does a full restart
author | drewp@bigasterisk.com |
---|---|
date | Sat, 23 Mar 2024 15:25:02 -0700 |
parents | 5a77696c6dab |
children |
rev | line source |
---|---|
0 | 1 apiVersion: apps/v1 |
2 kind: Deployment | |
3 metadata: | |
4 name: light-bridge | |
5 spec: | |
6 replicas: 1 | |
7 selector: | |
8 matchLabels: | |
9 app: light-bridge | |
10 template: | |
11 metadata: | |
12 labels: | |
13 app: light-bridge | |
14 spec: | |
15 | |
16 volumes: | |
17 - name: nginx-conf | |
18 configMap: | |
19 name: light-bridge-nginx-conf | |
20 containers: | |
21 - name: proxy | |
22 image: docker.io/nginx:1.21.6 | |
23 ports: | |
24 - containerPort: 80 | |
25 volumeMounts: | |
26 - { name: nginx-conf, mountPath: "/etc/nginx/" } | |
27 - name: light-bridge-vite | |
28 image: reg:5000/light_bridge_image | |
29 ports: | |
30 - containerPort: 8002 | |
31 command: | |
32 - pnpm | |
33 - exec | |
34 - vite | |
35 - --port=8002 | |
36 - name: light-bridge-py | |
37 image: reg:5000/light_bridge_image | |
38 ports: | |
39 - containerPort: 8001 | |
40 command: | |
41 - pdm | |
42 - run | |
27
32cfefe3155b
try harder to crash if there's an mqtt error, so k8s does a full restart
drewp@bigasterisk.com
parents:
0
diff
changeset
|
43 - python |
32cfefe3155b
try harder to crash if there's an mqtt error, so k8s does a full restart
drewp@bigasterisk.com
parents:
0
diff
changeset
|
44 - light_bridge.py |
0 | 45 --- |
46 apiVersion: v1 | |
47 kind: Service | |
48 metadata: | |
49 name: light-bridge | |
50 spec: | |
51 ports: | |
52 - {port: 80, targetPort: 80} | |
53 selector: | |
54 app: light-bridge |