coroot-node-agent.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. apiVersion: v1
  2. kind: Namespace
  3. metadata:
  4. name: coroot
  5. ---
  6. apiVersion: apps/v1
  7. kind: DaemonSet
  8. metadata:
  9. labels:
  10. app: coroot-node-agent
  11. name: coroot-node-agent
  12. namespace: coroot
  13. spec:
  14. selector:
  15. matchLabels:
  16. app: coroot-node-agent
  17. template:
  18. metadata:
  19. labels:
  20. app: coroot-node-agent
  21. annotations:
  22. prometheus.io/scrape: 'true'
  23. prometheus.io/port: '80'
  24. spec:
  25. tolerations:
  26. - operator: Exists
  27. hostPID: true
  28. containers:
  29. - name: coroot-node-agent
  30. image: ghcr.io/coroot/coroot-node-agent
  31. args: ["--cgroupfs-root", "/host/sys/fs/cgroup"]
  32. ports:
  33. - containerPort: 80
  34. name: http
  35. securityContext:
  36. privileged: true
  37. volumeMounts:
  38. - mountPath: /host/sys/fs/cgroup
  39. name: cgroupfs
  40. readOnly: true
  41. - mountPath: /sys/kernel/debug
  42. name: debugfs
  43. readOnly: false
  44. volumes:
  45. - hostPath:
  46. path: /sys/fs/cgroup
  47. name: cgroupfs
  48. - hostPath:
  49. path: /sys/kernel/debug
  50. name: debugfs