apiVersion: apps/v1 kind: DaemonSet metadata: name: arp-table-exporter spec: selector: matchLabels: name: arp-table-exporter template: metadata: labels: name: arp-table-exporter spec: containers: - name: arp-table-exporter image: qdii/arp-table-exporter:1.1.0 command: ["python3", "arp_table_exporter.py", "--path=/rootfs/proc/net/arp"] securityContext: privileged: true volumeMounts: - mountPath: /rootfs name: rootfs readOnly: true ports: - name: web containerPort: 8000 hostNetwork: true volumes: - name: rootfs hostPath: path: / type: Directory --- apiVersion: monitoring.coreos.com/v1 kind: PodMonitor metadata: name: arp-table-exporter labels: jobLabel: arp-table-exporter release: prometheus spec: jobLabel: name selector: matchLabels: name: arp-table-exporter podMetricsEndpoints: - port: web