shelly-plug-exporter.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. strategy:
  13. type: Recreate
  14. selector:
  15. matchLabels:
  16. app: shelly-plug-exporter
  17. replicas: 1
  18. template:
  19. metadata:
  20. labels:
  21. app: shelly-plug-exporter
  22. spec:
  23. containers:
  24. - name: shelly-plug-exporter
  25. image: webdevops/shelly-plug-exporter:24.9.0
  26. ports:
  27. - containerPort: 8080
  28. name: metrics
  29. env:
  30. - name: SHELLY_HOST_SHELLYPLUSES
  31. value: 172.16.69.80,172.16.69.81,172.16.69.82,172.16.69.83,172.16.69.84
  32. - name: SHELLY_AUTH_USERNAME
  33. value: admin
  34. - name: SHELLY_AUTH_PASSWORD
  35. valueFrom:
  36. secretKeyRef:
  37. name: shelly-plug-exporter
  38. key: password
  39. optional: false
  40. - name: LOG_DEBUG
  41. value: "1"
  42. - name: LOG_JSON
  43. value: "0"
  44. ---
  45. apiVersion: v1
  46. kind: Service
  47. metadata:
  48. name: shelly-plug-exporter
  49. namespace: homeassistant
  50. labels:
  51. app: shelly-plug-exporter
  52. spec:
  53. selector:
  54. app: shelly-plug-exporter
  55. type: ClusterIP
  56. ports:
  57. - name: metrics
  58. protocol: TCP
  59. port: 8080
  60. targetPort: metrics