Skip to content

Instantly share code, notes, and snippets.

@nektro
Created September 29, 2020 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nektro/27754c11a906884803f79453a70504ff to your computer and use it in GitHub Desktop.
Save nektro/27754c11a906884803f79453a70504ff to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: node_exporter
namespace: prometheus/node_exporter
spec:
template:
metadata:
labels:
name: node_exporter
spec:
hostNetwork: true
hostPID: true
containers:
- name: node_exporter
image: prom/node-exporter:v1.0.1
command: ["--path.rootfs=/host"]
volumeMounts:
- name: host
mountPath: /host
readOnly: true
volumes:
- name: host
hostPath:
path: /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment