Mercurial > code > home > repos > mqtt_metrics
diff deploy.yaml @ 0:0b5b4ede1bf5
start with a mockup of the debugging display
author | drewp@bigasterisk.com |
---|---|
date | Fri, 09 Aug 2024 15:09:22 -0700 |
parents | |
children | 3d7f2dc9beec |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deploy.yaml Fri Aug 09 15:09:22 2024 -0700 @@ -0,0 +1,57 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: mqtt-metrics +spec: + replicas: 1 + selector: + matchLabels: + app: mqtt-metrics + template: + metadata: + labels: + app: mqtt-metrics + spec: + + volumes: + - name: nginx-conf + configMap: + name: mqtt-metrics-nginx-conf + containers: + - name: proxy + image: docker.io/nginx:1.21.6 + ports: + - containerPort: 80 + volumeMounts: + - { name: nginx-conf, mountPath: "/etc/nginx/" } + - name: mqtt-metrics-vite + image: reg:5000/mqtt_metrics_image + ports: + - containerPort: 8002 + command: + - pnpm + - exec + - vite + - --port=8002 + - name: mqtt-metrics-py + image: reg:5000/mqtt_metrics_image + ports: + - containerPort: 8001 + command: + - pdm + - run + - uvicorn + - '--port=8001' + - '--host=0.0.0.0' + - '--reload' + - 'mqtt_metrics:app' +--- +apiVersion: v1 +kind: Service +metadata: + name: mqtt-metrics +spec: + ports: + - {port: 80, targetPort: 80} + selector: + app: mqtt-metrics