deployment.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: qbittorrent-exporter
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: qbittorrent-exporter
  9. app.kubernetes.io/part-of: qbittorrent
  10. strategy:
  11. type: Recreate
  12. template:
  13. metadata:
  14. labels:
  15. app.kubernetes.io/name: qbittorrent-exporter
  16. app.kubernetes.io/part-of: qbittorrent
  17. spec:
  18. containers:
  19. - image: ghcr.io/martabal/qbittorrent-exporter:v1.1.4
  20. name: qbittorrent-exporter
  21. ports:
  22. - containerPort: 17871
  23. name: metrics
  24. protocol: TCP
  25. env:
  26. - name: QBITTORRENT_USERNAME
  27. valueFrom:
  28. configMapKeyRef:
  29. key: QBITTORRENT_USERNAME
  30. name: env
  31. - name: QBITTORRENT_PASSWORD
  32. valueFrom:
  33. configMapKeyRef:
  34. key: QBITTORRENT_PASSWORD
  35. name: env
  36. - name: QBITTORRENT_BASE_URL
  37. valueFrom:
  38. configMapKeyRef:
  39. key: QBITTORRENT_BASE_URL
  40. name: env
  41. resources:
  42. limits:
  43. cpu: 1
  44. memory: 256Mi
  45. requests:
  46. cpu: 10m
  47. memory: 128Mi