2018-03-02 01:03:53 +01:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: node-exporter
|
|
|
|
spec:
|
|
|
|
updateStrategy:
|
|
|
|
rollingUpdate:
|
|
|
|
maxUnavailable: 1
|
|
|
|
type: RollingUpdate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: node-exporter
|
|
|
|
name: node-exporter
|
|
|
|
spec:
|
|
|
|
serviceAccountName: node-exporter
|
|
|
|
securityContext:
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 65534
|
|
|
|
hostNetwork: true
|
|
|
|
hostPID: true
|
|
|
|
containers:
|
2018-03-06 16:37:31 +01:00
|
|
|
- image: carlosedp/node_exporter
|
2018-03-02 01:03:53 +01:00
|
|
|
args:
|
|
|
|
#- "--web.listen-address=0.0.0.1:9100"
|
|
|
|
- "--path.procfs=/host/proc"
|
|
|
|
- "--path.sysfs=/host/sys"
|
|
|
|
name: node-exporter
|
|
|
|
ports:
|
|
|
|
- containerPort: 9100
|
|
|
|
hostPort: 9100
|
|
|
|
name: http
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: 30Mi
|
|
|
|
cpu: 100m
|
|
|
|
limits:
|
|
|
|
memory: 50Mi
|
|
|
|
cpu: 200m
|
|
|
|
volumeMounts:
|
|
|
|
- name: proc
|
|
|
|
readOnly: true
|
|
|
|
mountPath: /host/proc
|
|
|
|
- name: sys
|
|
|
|
readOnly: true
|
|
|
|
mountPath: /host/sys
|
|
|
|
tolerations:
|
|
|
|
- effect: NoSchedule
|
|
|
|
operator: Exists
|
|
|
|
volumes:
|
|
|
|
- name: proc
|
|
|
|
hostPath:
|
|
|
|
path: /proc
|
|
|
|
- name: sys
|
|
|
|
hostPath:
|
|
|
|
path: /sys
|
|
|
|
|