Skip to content

Commit

Permalink
Added Daemonset
Browse files Browse the repository at this point in the history
  • Loading branch information
pelthepu committed Apr 16, 2023
1 parent 4a4f861 commit ff9d248
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions resources/daemonset/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: node-exporter
spec:
selector:
matchLabels:
app: node-exporter
template:
metadata:
labels:
app: node-exporter
spec:
# nodeSelector:
# kubernetes.io/os: linux
containers:
- name: node-exporter
image: prom/node-exporter:latest
args:
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
ports:
- name: metrics
containerPort: 9100
volumeMounts:
- name: procfs
mountPath: /host/proc
readOnly: true
- name: sysfs
mountPath: /host/sys
readOnly: true
volumes:
- name: procfs
hostPath:
path: /proc
- name: sysfs
hostPath:
path: /sys

0 comments on commit ff9d248

Please sign in to comment.