comparison service/powerEagle/plugs/deploy.yaml @ 1751:610beb3248d1

renames and cleanup
author drewp@bigasterisk.com
date Sun, 28 Apr 2024 17:12:06 -0700
parents 4b29ce991e59
children
comparison
equal deleted inserted replaced
1750:00e04a98493d 1751:610beb3248d1
1 apiVersion: apps/v1 1 apiVersion: apps/v1
2 kind: Deployment 2 kind: Deployment
3 metadata: 3 metadata:
4 name: plugs 4 name: powermeter-exporter
5 spec: 5 spec:
6 replicas: 1 6 replicas: 1
7 selector: 7 selector:
8 matchLabels: 8 matchLabels:
9 app: plugs 9 app: powermeter-exporter
10 template: 10 template:
11 metadata: 11 metadata:
12 labels: 12 labels:
13 app: plugs 13 app: powermeter-exporter
14 annotations: 14 annotations:
15 prometheus.io/scrape: "true" 15 prometheus.io/scrape: "true"
16 spec: 16 spec:
17 containers: 17 containers:
18 - name: plugs 18 - name: exporter
19 image: reg:5000/plugs_exporter_image 19 image: reg:5000/powermeter_exporter_image
20 workingDir: /opt 20 workingDir: /opt
21 command: 21 command:
22 - pdm 22 - pdm
23 - run 23 - run
24 - python 24 - python
25 - exporter.py 25 - powermeter_exporter.py
26 ports: 26 ports:
27 - containerPort: 8005 27 - containerPort: 8005
28 --- 28 ---
29 apiVersion: v1 29 apiVersion: v1
30 kind: Service 30 kind: Service
31 metadata: 31 metadata:
32 name: plugs 32 name: powermeter-exporter
33 spec: 33 spec:
34 ports: 34 ports:
35 - { port: 80, targetPort: 8005 } 35 - { port: 80, targetPort: 8005 }
36 selector: 36 selector:
37 app: plugs 37 app: powermeter-exporter