123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 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
|