Created
September 29, 2020 22:29
-
-
Save nektro/27754c11a906884803f79453a70504ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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