From 38be6c13f76e893cf47636257071b440dec0c5b2 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 7 Sep 2025 17:32:13 +0200 Subject: initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bundles/node-exporter/files/kube.yaml | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 bundles/node-exporter/files/kube.yaml (limited to 'bundles/node-exporter/files/kube.yaml') diff --git a/bundles/node-exporter/files/kube.yaml b/bundles/node-exporter/files/kube.yaml new file mode 100644 index 0000000..3e7678b --- /dev/null +++ b/bundles/node-exporter/files/kube.yaml @@ -0,0 +1,63 @@ +apiVersion: v1 +kind: Pod +metadata: + name: node-exporter + labels: + traefik.enable: true + traefik.http.services.node-exporter.loadbalancer.server.port: 20091 + # metrics + traefik.http.routers.node-exporter-metrics.entrypoints: metrics + traefik.http.routers.node-exporter-metrics.rule: Path(`/metrics/node-exporter`) + traefik.http.routers.node-exporter-metrics.middlewares: replacepath-metrics + traefik.http.routers.node-exporter-metrics.service: node-exporter +spec: + restartPolicy: Never + dnsPolicy: Default + containers: + - name: node-exporter + image: quay.io/prometheus/node-exporter:v1.8.0 + args: + - --path.procfs=/host/proc + - --path.sysfs=/host/sys + - --web.listen-address=:20091 + - --no-collector.bcache + - --no-collector.selinux + - --no-collector.infiniband + - --no-collector.xfs + - --no-collector.zfs + - --collector.textfile.directory=/host/textfiles + volumeMounts: + - name: proc + mountPath: /host/proc + readOnly: true + - name: sys + mountPath: /host/sys + readOnly: true + - name: textfiles + mountPath: /host/textfiles + readOnly: true + ports: + - containerPort: 20091 + protocol: TCP + hostNetwork: true + hostPID: true + resources: + limits: + cpu: 10m + memory: 50Mi + requests: + cpu: 1m + memory: 10Mi + volumes: + - name: proc + hostPath: + path: /proc + type: Directory + - name: sys + hostPath: + path: /sys + type: Directory + - name: textfiles + hostPath: + path: /run/prom + type: DirectoryOrCreate -- cgit 1.4.1