shelly-plug-exporter.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: shelly-plug-exporter
  6. namespace: homeassistant
  7. annotations:
  8. prometheus.io/path: /probe
  9. prometheus.io/port: "8080"
  10. prometheus.io/scrape: "true"
  11. spec:
  12. selector:
  13. matchLabels:
  14. app: shelly-plug-exporter
  15. replicas: 1
  16. template:
  17. metadata:
  18. labels:
  19. app: shelly-plug-exporter
  20. spec:
  21. containers:
  22. - name: shelly-plug-exporter
  23. image: jibby0/shelly-plug-exporter:24.2.0-fork
  24. ports:
  25. - containerPort: 8080
  26. name: metrics
  27. env:
  28. - name: SHELLY_HOST_SHELLYPLUSES
  29. value: 172.16.69.85,172.16.69.173
  30. - name: SHELLY_AUTH_USERNAME
  31. value: admin
  32. - name: SHELLY_AUTH_PASSWORD
  33. valueFrom:
  34. secretKeyRef:
  35. name: shelly-plug-exporter
  36. key: password
  37. optional: false
  38. ---
  39. apiVersion: v1
  40. kind: Service
  41. metadata:
  42. name: shelly-plug-exporter
  43. namespace: homeassistant
  44. labels:
  45. app: shelly-plug-exporter
  46. spec:
  47. selector:
  48. app: shelly-plug-exporter
  49. type: ClusterIP
  50. ports:
  51. - name: metrics
  52. protocol: TCP
  53. port: 8080
  54. targetPort: metrics