arp-table-exporter.yaml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. apiVersion: apps/v1
  2. kind: DaemonSet
  3. metadata:
  4. name: arp-table-exporter
  5. spec:
  6. selector:
  7. matchLabels:
  8. name: arp-table-exporter
  9. template:
  10. metadata:
  11. labels:
  12. name: arp-table-exporter
  13. spec:
  14. containers:
  15. - name: arp-table-exporter
  16. image: qdii/arp-table-exporter:1.1.0
  17. command: ["python3", "arp_table_exporter.py", "--path=/rootfs/proc/net/arp"]
  18. securityContext:
  19. privileged: true
  20. volumeMounts:
  21. - mountPath: /rootfs
  22. name: rootfs
  23. readOnly: true
  24. ports:
  25. - name: web
  26. containerPort: 8000
  27. hostNetwork: true
  28. volumes:
  29. - name: rootfs
  30. hostPath:
  31. path: /
  32. type: Directory
  33. ---
  34. apiVersion: monitoring.coreos.com/v1
  35. kind: PodMonitor
  36. metadata:
  37. name: arp-table-exporter
  38. labels:
  39. jobLabel: arp-table-exporter
  40. release: prometheus
  41. spec:
  42. jobLabel: name
  43. selector:
  44. matchLabels:
  45. name: arp-table-exporter
  46. podMetricsEndpoints:
  47. - port: web