node-exporter-daemonset.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ---
  2. # Source: loki-stack/charts/prometheus/templates/node-exporter-daemonset.yaml
  3. apiVersion: apps/v1
  4. kind: DaemonSet
  5. metadata:
  6. labels:
  7. component: "node-exporter"
  8. app: prometheus
  9. release: loki
  10. chart: prometheus-9.3.1
  11. heritage: Tiller
  12. name: loki-prometheus-node-exporter
  13. spec:
  14. selector:
  15. matchLabels:
  16. component: "node-exporter"
  17. app: prometheus
  18. release: loki
  19. updateStrategy:
  20. type: RollingUpdate
  21. template:
  22. metadata:
  23. labels:
  24. component: "node-exporter"
  25. app: prometheus
  26. release: loki
  27. chart: prometheus-9.3.1
  28. heritage: Tiller
  29. spec:
  30. serviceAccountName: loki-prometheus-node-exporter
  31. containers:
  32. - name: prometheus-node-exporter
  33. image: "prom/node-exporter:v0.18.0"
  34. imagePullPolicy: "IfNotPresent"
  35. args:
  36. - --path.procfs=/host/proc
  37. - --path.sysfs=/host/sys
  38. ports:
  39. - name: metrics
  40. containerPort: 9100
  41. hostPort: 9100
  42. resources:
  43. {}
  44. volumeMounts:
  45. - name: proc
  46. mountPath: /host/proc
  47. readOnly: true
  48. - name: sys
  49. mountPath: /host/sys
  50. readOnly: true
  51. hostNetwork: true
  52. hostPID: true
  53. volumes:
  54. - name: proc
  55. hostPath:
  56. path: /proc
  57. - name: sys
  58. hostPath:
  59. path: /sys