daemonset.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. apiVersion: apps/v1
  2. kind: DaemonSet
  3. metadata:
  4. labels:
  5. app.kubernetes.io/component: exporter
  6. app.kubernetes.io/name: node-exporter
  7. app.kubernetes.io/part-of: kube-prometheus
  8. app.kubernetes.io/version: 1.1.0
  9. name: node-exporter
  10. name: node-exporter
  11. namespace: monitoring
  12. spec:
  13. selector:
  14. matchLabels:
  15. app.kubernetes.io/component: exporter
  16. app.kubernetes.io/name: node-exporter
  17. app.kubernetes.io/part-of: kube-prometheus
  18. template:
  19. metadata:
  20. labels:
  21. app.kubernetes.io/component: exporter
  22. app.kubernetes.io/name: node-exporter
  23. app.kubernetes.io/part-of: kube-prometheus
  24. app.kubernetes.io/version: 1.1.0
  25. spec:
  26. containers:
  27. - args:
  28. - --web.listen-address=127.0.0.1:9100
  29. - --path.sysfs=/host/sys
  30. - --path.rootfs=/host/root
  31. - --no-collector.wifi
  32. - --no-collector.hwmon
  33. - --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
  34. - --collector.netclass.ignored-devices=^(veth.*)$
  35. - --collector.netdev.device-exclude=^(veth.*)$
  36. image: quay.io/prometheus/node-exporter:v1.3.1
  37. name: node-exporter
  38. resources:
  39. limits:
  40. cpu: 250m
  41. memory: 180Mi
  42. requests:
  43. cpu: 102m
  44. memory: 180Mi
  45. volumeMounts:
  46. - mountPath: /host/sys
  47. mountPropagation: HostToContainer
  48. name: sys
  49. readOnly: true
  50. - mountPath: /host/root
  51. mountPropagation: HostToContainer
  52. name: root
  53. readOnly: true
  54. - args:
  55. - --logtostderr
  56. - --secure-listen-address=[$(IP)]:9100
  57. - --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
  58. - --upstream=http://127.0.0.1:9100/
  59. env:
  60. - name: IP
  61. valueFrom:
  62. fieldRef:
  63. fieldPath: status.podIP
  64. image: quay.io/brancz/kube-rbac-proxy:v0.12.0
  65. name: kube-rbac-proxy
  66. ports:
  67. - containerPort: 9100
  68. hostPort: 9100
  69. name: https
  70. resources:
  71. limits:
  72. cpu: 20m
  73. memory: 40Mi
  74. requests:
  75. cpu: 10m
  76. memory: 20Mi
  77. securityContext:
  78. runAsGroup: 65532
  79. runAsNonRoot: true
  80. runAsUser: 65532
  81. hostNetwork: true
  82. hostPID: true
  83. nodeSelector:
  84. kubernetes.io/os: linux
  85. securityContext:
  86. runAsNonRoot: true
  87. runAsUser: 65534
  88. serviceAccountName: node-exporter
  89. tolerations:
  90. - operator: Exists
  91. volumes:
  92. - hostPath:
  93. path: /sys
  94. name: sys
  95. - hostPath:
  96. path: /
  97. name: root
  98. updateStrategy:
  99. rollingUpdate:
  100. maxUnavailable: 10%
  101. type: RollingUpdate