shelly-plug-exporter.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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: jibby0/shelly-plug-exporter:24.2.0-fork2
  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: SHELLY_REQUEST_TIMEOUT
  41. value: 30s
  42. - name: SERVER_TIMEOUT_READ
  43. value: 30s
  44. - name: SERVER_TIMEOUT_WRITE
  45. value: 30s
  46. - name: LOG_DEBUG
  47. value: "1"
  48. - name: LOG_JSON
  49. value: "0"
  50. ---
  51. apiVersion: v1
  52. kind: Service
  53. metadata:
  54. name: shelly-plug-exporter
  55. namespace: homeassistant
  56. labels:
  57. app: shelly-plug-exporter
  58. spec:
  59. selector:
  60. app: shelly-plug-exporter
  61. type: ClusterIP
  62. ports:
  63. - name: metrics
  64. protocol: TCP
  65. port: 8080
  66. targetPort: metrics